/* ==========================================================================
   Vogelspinner Theme
   Mobile first: Grundregeln gelten fürs Handy, größere Bildschirme
   werden mit min-width-Media-Queries bzw. Container-Queries ergänzt.
   Farben, Schriften und Breiten kommen als CSS-Variablen aus dem Customizer.
   ========================================================================== */

/* ── Grundlagen ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--vs-bg);
    color: var(--vs-text);
    font-family: var(--vs-font-body);
    font-size: var(--vs-font-size);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}

img,
svg,
video { max-width: 100%; height: auto; display: block; }

a {
    color: var(--vs-accent);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--vs-accent-hover); }

:focus-visible {
    outline: 2px solid var(--vs-accent);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vs-font-heading);
    font-weight: var(--vs-heading-weight);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--vs-text);
    margin: 0 0 .5em;
    text-wrap: balance;
}

p { margin: 0 0 1.2em; }

hr {
    border: 0;
    border-top: 1px solid var(--vs-line);
    margin: 2.5rem 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}

.vs-skip-link {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--vs-text);
    color: #fff;
    font-weight: 700;
}
.vs-skip-link:focus { top: 8px; color: #fff; }

.vs-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Container ──────────────────────────────────────────────────────────── */
.vs-container {
    width: 100%;
    max-width: calc(var(--vs-container) + 32px);
    margin-inline: auto;
    padding-inline: 16px;
}

@media (min-width: 640px) {
    .vs-container {
        max-width: calc(var(--vs-container) + 48px);
        padding-inline: 24px;
    }
}

@media (min-width: 1024px) {
    .vs-container {
        max-width: calc(var(--vs-container) + 64px);
        padding-inline: 32px;
    }
}

.vs-main { padding-block: 28px 56px; }

@media (min-width: 1024px) {
    .vs-main { padding-block: 40px 80px; }
}

/* ── Knöpfe ─────────────────────────────────────────────────────────────── */
.vs-button,
.wp-block-button__link,
.vs-comments input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: 12px 24px;
    border: 2px solid var(--vs-accent);
    border-radius: var(--vs-radius);
    background: var(--vs-accent);
    color: #fff;
    font-family: var(--vs-font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.vs-button:hover,
.wp-block-button__link:hover,
.vs-comments input[type="submit"]:hover {
    background: var(--vs-accent-hover);
    border-color: var(--vs-accent-hover);
    color: #fff;
}

.vs-button--outline,
.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--vs-accent);
}
.vs-button--outline:hover,
.is-style-outline .wp-block-button__link:hover {
    background: var(--vs-accent);
    color: #fff;
}

/* ── Formulare ──────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius);
    background: #fff;
    color: var(--vs-text);
    font: inherit;
    font-size: 16px;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--vs-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--vs-accent) 20%, transparent);
}

.vs-searchform {
    display: flex;
    width: 100%;
    max-width: 640px;
}
.vs-searchform__input {
    flex: 1;
    border-right: 0 !important;
}
.vs-searchform__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    border: 0;
    border-radius: 0 var(--vs-radius) var(--vs-radius) 0;
    background: var(--vs-accent);
    color: #fff;
    cursor: pointer;
}
.vs-searchform__btn:hover { background: var(--vs-accent-hover); }

/* ==========================================================================
   Infozeile
   ========================================================================== */
.vs-topbar {
    background: var(--vs-surface);
    border-bottom: 1px solid var(--vs-line);
    font-size: 13px;
    color: var(--vs-muted);
}
.vs-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    min-height: 36px;
    padding-block: 6px;
}
.vs-topbar__text { margin: 0; }
.vs-topbar__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.vs-topbar__menu a { color: var(--vs-muted); }
.vs-topbar__menu a:hover { color: var(--vs-accent); }

/* ==========================================================================
   Header
   Handy: Logo links, Suche und Menü-Knopf rechts, Menü klappt darunter auf.
   ========================================================================== */
.vs-header {
    position: relative;
    z-index: 100;
    background: var(--vs-header-bg);
    color: var(--vs-header-text);
}
.vs-header.has-border { border-bottom: 1px solid var(--vs-line); }

.vs-sticky .vs-header {
    position: sticky;
    top: 0;
}
.vs-header.is-scrolled { box-shadow: 0 1px 12px rgba(0, 0, 0, .06); }

.vs-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand search toggle" "nav nav nav";
    align-items: center;
    column-gap: 4px;
    min-height: 64px;
    padding-block: 10px;
}

.vs-header__brand { grid-area: brand; min-width: 0; }
.vs-nav { grid-area: nav; }
.vs-search-toggle { grid-area: search; }
.vs-menu-toggle { grid-area: toggle; }

.vs-logo {
    margin: 0;
    font-size: inherit;
    line-height: 1;
    letter-spacing: 0;
}
.vs-logo a { display: inline-block; color: var(--vs-header-text); }
.vs-logo__img {
    width: auto;
    height: var(--vs-logo-h-mobile);
    max-width: 100%;
    object-fit: contain;
}
.vs-logo__text {
    font-family: var(--vs-font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.vs-tagline {
    display: none;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--vs-muted);
}

.vs-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--vs-header-text);
    cursor: pointer;
}
.vs-header__btn:hover { color: var(--vs-accent); }

.vs-menu-toggle__close { display: none; }
.is-nav-open .vs-menu-toggle__open { display: none; }
.is-nav-open .vs-menu-toggle__close { display: inline-flex; }

/* Menü auf dem Handy: aufklappbare Liste unter dem Header */
.vs-nav {
    display: none;
    margin-inline: -16px;
    border-top: 1px solid var(--vs-line);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.is-nav-open .vs-nav { display: block; }

.vs-menu,
.vs-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.vs-menu li { position: relative; }
.vs-menu a {
    display: block;
    padding: 14px 56px 14px 16px;
    border-bottom: 1px solid var(--vs-line);
    color: var(--vs-header-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.vs-menu-upper .vs-menu a {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 13px;
}
.vs-menu a:hover,
.vs-menu .current-menu-item > a,
.vs-menu .current-menu-ancestor > a { color: var(--vs-accent); }

.vs-menu .sub-menu { display: none; background: var(--vs-surface); }
.vs-menu .sub-menu a { padding-left: 32px; font-weight: 500; }
.vs-menu .sub-menu .sub-menu a { padding-left: 48px; }
.vs-menu li.is-open > .sub-menu { display: block; }

.vs-sub-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 48px;
    border: 0;
    border-left: 1px solid var(--vs-line);
    background: transparent;
    color: var(--vs-header-text);
    cursor: pointer;
}
.vs-sub-toggle .vs-icon { width: 16px; height: 16px; transition: transform .2s ease; }
li.is-open > .vs-sub-toggle .vs-icon { transform: rotate(180deg); }

/* Suche */
.vs-search-panel {
    border-top: 1px solid var(--vs-line);
    background: var(--vs-surface);
    padding-block: 16px;
}

/* Minimal-Layout: Menü-Knopf links, Logo mittig, Suche rechts (auch am Desktop) */
.vs-header--minimal .vs-header__inner {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas: "toggle brand search" "nav nav nav";
}
.vs-header--minimal .vs-header__brand { text-align: center; }

/* ── Header ab Tablet ── */
@media (min-width: 640px) {
    .vs-nav { margin-inline: -24px; }
    .vs-tagline { display: block; }
}

/* ── Header ab Desktop ── */
@media (min-width: 1024px) {
    .vs-logo__img { height: var(--vs-logo-h); }
    .vs-logo__text { font-size: 28px; }

    body:not(.vs-header--minimal) .vs-menu-toggle { display: none; }

    /* Desktop-Menü (nicht im Minimal-Layout) */
    body:not(.vs-header--minimal) .vs-nav {
        display: block;
        margin: 0;
        border: 0;
        max-height: none;
        overflow: visible;
    }
    body:not(.vs-header--minimal) .vs-menu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 4px;
    }
    body:not(.vs-header--minimal) .vs-menu > li > a {
        padding: 10px 14px;
        border: 0;
    }
    body:not(.vs-header--minimal) .vs-menu > li.menu-item-has-children > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding-right: 14px;
    }
    body:not(.vs-header--minimal) .vs-menu > li.menu-item-has-children > a::after {
        content: "";
        width: 6px;
        height: 6px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
    }
    body:not(.vs-header--minimal) .vs-sub-toggle { display: none; }

    /* Untermenüs als Aufklapper */
    body:not(.vs-header--minimal) .vs-menu .sub-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 20;
        min-width: 240px;
        padding: 8px 0;
        border: 1px solid var(--vs-line);
        border-radius: var(--vs-radius);
        background: var(--vs-header-bg);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity .15s ease, transform .15s ease, visibility .15s;
    }
    body:not(.vs-header--minimal) .vs-menu .sub-menu .sub-menu {
        top: -9px;
        left: 100%;
    }
    body:not(.vs-header--minimal) .vs-menu li:hover > .sub-menu,
    body:not(.vs-header--minimal) .vs-menu li:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    body:not(.vs-header--minimal) .vs-menu .sub-menu a {
        padding: 9px 20px;
        border: 0;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
    }

    /* Klassisch: Logo links, Menü rechts */
    .vs-header--classic .vs-header__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "brand nav search";
        grid-template-rows: auto;
        column-gap: 24px;
        min-height: 88px;
    }
    .vs-header--classic .vs-menu { justify-content: flex-end; }

    /* Zentriert: Logo und Spruch mittig, Menü in eigener Zeile */
    .vs-header--centered .vs-header__inner {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        grid-template-areas:
            ". brand ."
            ". nav search";
        row-gap: 18px;
        padding-block: 28px 0;
    }
    .vs-header--centered .vs-header__brand { text-align: center; }
    .vs-header--centered .vs-tagline { margin-top: 10px; font-size: 14px; }
    .vs-header--centered .vs-menu { justify-content: center; padding-block: 6px; }
    .vs-header--centered .vs-search-toggle { justify-self: end; }

    /* Linie über der Menüzeile (zentriert und zweizeilig) */
    .vs-header--centered .vs-header__inner::before,
    .vs-header--stacked .vs-header__inner::before {
        content: "";
        grid-row: 2;
        grid-column: 1 / -1;
        align-self: start;
        border-top: 1px solid var(--vs-line);
    }

    /* Zweizeilig: Logo und Spruch links, Menü darunter */
    .vs-header--stacked .vs-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand brand"
            "nav search";
        row-gap: 16px;
        padding-block: 24px 0;
    }
    .vs-header--stacked .vs-header__brand {
        display: flex;
        align-items: flex-end;
        gap: 24px;
    }
    .vs-header--stacked .vs-tagline {
        margin: 0;
        padding-left: 24px;
        border-left: 1px solid var(--vs-line);
        font-size: 14px;
    }
    .vs-header--stacked .vs-menu { padding-block: 6px; margin-left: -14px; }

    /* Minimal: Menü bleibt hinter dem Knopf, öffnet als breite Fläche */
    .vs-header--minimal .vs-header__inner { min-height: 88px; }
    .vs-header--minimal .vs-nav { margin-inline: -32px; }
    .vs-header--minimal .is-nav-open .vs-nav { display: block; }
    .vs-header--minimal .vs-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 32px;
        padding: 24px 32px 32px;
    }
    .vs-header--minimal .vs-menu > li > a { border-bottom: 1px solid var(--vs-line); padding-left: 0; }
    .vs-header--minimal .vs-menu .sub-menu { display: block; background: transparent; }
    .vs-header--minimal .vs-menu .sub-menu a { padding: 8px 0; border: 0; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 15px; }
    .vs-header--minimal .vs-sub-toggle { display: none; }
}

/* Admin-Leiste beim mitlaufenden Header berücksichtigen */
@media (min-width: 601px) {
    .admin-bar.vs-sticky .vs-header { top: 46px; }
}
@media (min-width: 783px) {
    .admin-bar.vs-sticky .vs-header { top: 32px; }
}

/* ==========================================================================
   Abschnitte und Beitragsbereiche
   Die Layouts reagieren auf die Breite ihres Platzes (Container-Queries):
   ein Raster in einer schmalen Spalte wird automatisch einspaltig.
   ========================================================================== */
.vs-section,
.vs-related > .vs-container {
    container-type: inline-size;
}

.vs-section + .vs-section { margin-top: 48px; }

.vs-section__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.vs-section__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.vs-section__head::after {
    content: "";
    order: 1;
    flex: 1;
    min-width: 24px;
    height: 1px;
    background: var(--vs-line);
}
.vs-section__more {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}
.vs-section__more .vs-icon { width: 16px; height: 16px; transition: transform .15s ease; }
.vs-section__more:hover .vs-icon { transform: translateX(3px); }

/* ── Karte: gemeinsame Teile ── */
.vs-card { position: relative; min-width: 0; }

.vs-card__media {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--vs-radius);
    background: var(--vs-surface);
}
.vs-card__media .vs-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.vs-card:hover .vs-card__media .vs-img { transform: scale(1.035); }
.vs-img--empty {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, transparent 49.5%, var(--vs-line) 49.5%, var(--vs-line) 50.5%, transparent 50.5%),
        var(--vs-surface);
}

.vs-ratio--16-9 { aspect-ratio: 16 / 9; }
.vs-ratio--3-2  { aspect-ratio: 3 / 2; }
.vs-ratio--4-3  { aspect-ratio: 4 / 3; }
.vs-ratio--1-1  { aspect-ratio: 1 / 1; }

.vs-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--vs-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .1em;
    text-transform: uppercase;
}
a.vs-kicker:hover { color: var(--vs-accent-hover); }

.vs-card__title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.25;
}
.vs-card__title a { color: var(--vs-text); }
.vs-card__title a:hover { color: var(--vs-accent); }

.vs-card__excerpt {
    margin: 0 0 10px;
    color: var(--vs-muted);
    font-size: .94em;
    line-height: 1.6;
}

.vs-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    color: var(--vs-muted);
    font-size: 13px;
    line-height: 1.5;
}
.vs-meta__sep { opacity: .6; }

/* ── Mittlere Karte (Raster) ── */
.vs-card--grid .vs-card__media { margin-bottom: 14px; }

/* ── Große Karte (Aufmacher) ── */
.vs-card--hero .vs-card__media { margin-bottom: 18px; }
.vs-card--hero .vs-card__title { font-size: 27px; line-height: 1.15; }
.vs-card--hero .vs-card__excerpt { font-size: 1em; }

/* ── Liste mit Bild links ── */
.vs-posts--list { display: grid; }
.vs-card--list {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    padding-block: 20px;
    border-bottom: 1px solid var(--vs-line);
}
.vs-card--list:first-child { padding-top: 0; }
.vs-card--list .vs-card__media { aspect-ratio: 1 / 1; }
.vs-card--list .vs-card__title { font-size: 17px; }
.vs-card--list .vs-card__excerpt { display: none; }

/* ── Kleine Karte mit Vorschaubild ── */
.vs-card--side {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-block: 14px;
    border-bottom: 1px solid var(--vs-line);
}
.vs-card--side:first-child { padding-top: 0; }
.vs-card--side:last-child { border-bottom: 0; padding-bottom: 0; }
.vs-card--side .vs-kicker { margin-bottom: 4px; font-size: 11px; }
.vs-card--side .vs-card__title { margin-bottom: 4px; font-size: 15.5px; }
.vs-card--side .vs-meta { font-size: 12px; }

/* ── Kompaktliste ── */
.vs-card--compact { padding-block: 14px; border-bottom: 1px solid var(--vs-line); }
.vs-card--compact:first-child { padding-top: 0; }
.vs-card--compact:last-child { border-bottom: 0; }
.vs-card--compact .vs-card__title { margin-bottom: 4px; font-size: 16px; line-height: 1.35; }
.vs-card--compact .vs-kicker { margin-bottom: 4px; font-size: 11px; }
.is-numbered .vs-card--compact .vs-card__body {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
}
.vs-card__num {
    color: color-mix(in srgb, var(--vs-accent) 55%, #fff);
    font-family: var(--vs-font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

/* ── Kacheln mit Titel im Bild ── */
.vs-tiles {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.vs-card--tile .vs-card__media { height: 100%; }
.vs-card--tile .vs-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, 0) 70%);
}
.vs-card--tile .vs-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 18px;
    pointer-events: none;
}
.vs-card--tile .vs-kicker { color: #fff; opacity: .85; }
.vs-card--tile .vs-card__title { margin: 0; font-size: 20px; }
.vs-card--tile .vs-card__title a {
    color: #fff;
    pointer-events: auto;
}
.vs-card--tile .vs-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* ── Raster ── */
.vs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px 24px;
}

/* ── Aufmacher mit kleinen Beiträgen daneben ── */
.vs-posts--hero-side { display: grid; gap: 28px; }
.vs-posts__aside { display: grid; align-content: start; }

/* ── Aufmacher mit Raster darunter ── */
.vs-posts--hero-grid > .vs-card--hero { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--vs-line); }

/* ── Ab mittlerer Breite des Platzes ── */
@container (min-width: 520px) {
    .vs-grid--2,
    .vs-grid--3,
    .vs-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vs-tiles.vs-grid--2,
    .vs-tiles.vs-grid--3,
    .vs-tiles.vs-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .vs-card--list {
        grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
        gap: 24px;
        padding-block: 24px;
    }
    .vs-card--list .vs-card__media { aspect-ratio: 3 / 2; }
    .vs-card--list .vs-card__title { font-size: 21px; }
    .vs-card--list .vs-card__excerpt { display: block; }

    .vs-card--side { grid-template-columns: 96px minmax(0, 1fr); }
    .vs-card--hero .vs-card__title { font-size: 32px; }
}

@container (min-width: 760px) {
    .vs-posts--hero-side {
        grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
        gap: 40px;
    }
    .vs-posts--hero-side .vs-posts__aside {
        padding-left: 40px;
        border-left: 1px solid var(--vs-line);
    }
    .vs-card--hero .vs-card__title { font-size: 38px; }
    .vs-card--hero .vs-card__excerpt { font-size: 1.05em; }
    .vs-posts--hero-grid > .vs-card--hero {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 36px;
        align-items: center;
    }
    .vs-posts--hero-grid > .vs-card--hero .vs-card__media { margin-bottom: 0; }
}

@container (min-width: 860px) {
    .vs-grid--3,
    .vs-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vs-grid { gap: 44px 32px; }

    .vs-tiles.vs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vs-tiles.vs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .vs-tiles.vs-grid--3 > .vs-card--tile:first-child,
    .vs-tiles.vs-grid--4 > .vs-card--tile:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
    .vs-tiles > .vs-card--tile:first-child .vs-card__media { aspect-ratio: auto; }
    .vs-tiles > .vs-card--tile:first-child .vs-card__body { padding: 28px; }
    .vs-tiles > .vs-card--tile:first-child .vs-card__title { font-size: 30px; }
    .vs-card--hero .vs-card__title { font-size: 42px; }
}

@container (min-width: 1080px) {
    .vs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .vs-grid--4 .vs-card__title { font-size: 18px; }
}

/* ── Nächste Börsen ── */
.vs-events__list { margin: 0; padding: 0; list-style: none; }
.vs-event {
    display: grid;
    margin: 0;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding-block: 12px;
    border-bottom: 1px solid var(--vs-line);
}
.vs-event:first-child { padding-top: 0; }
.vs-event__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: var(--vs-radius);
    background: var(--vs-surface);
    line-height: 1;
}
.vs-event__day {
    font-family: var(--vs-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--vs-text);
}
.vs-event__month {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--vs-accent);
}
.vs-event__title {
    display: block;
    color: var(--vs-text);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}
.vs-event__title:hover { color: var(--vs-accent); }
.vs-event__where { display: block; margin-top: 2px; color: var(--vs-muted); font-size: 13px; }
.vs-events__more { margin-top: 14px; }

.vs-block-empty {
    padding: 20px;
    border: 1px dashed var(--vs-line);
    color: var(--vs-muted);
    font-size: 14px;
    text-align: center;
}

/* ==========================================================================
   Startseite und Inhaltsbereiche
   ========================================================================== */
.vs-front__content > * + * { margin-top: 56px; }
.vs-front__content > .wp-block-columns { gap: 40px; }
.vs-front__more { margin: 48px 0 0; text-align: center; }

@media (min-width: 782px) {
    .vs-front__content > .wp-block-columns,
    .vs-columns { gap: 48px; }
    .vs-aside-col {
        padding-left: 40px;
        border-left: 1px solid var(--vs-line);
    }
}
.vs-aside-col > * + * { margin-top: 44px; }

/* Textinhalt: Lesebreite, weite und volle Ausrichtung */
.entry-content > * {
    max-width: var(--vs-content);
    margin-inline: auto;
}
.entry-content > .alignwide { max-width: var(--vs-container); }
.entry-content > .alignfull {
    max-width: none;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
}
.vs-front__content > *,
.vs-page--wide .entry-content > *,
.vs-page--fullwidth .entry-content > * { max-width: var(--vs-container); }

/* In Layouts mit Seitenleiste füllt der Text die Hauptspalte */
.vs-layout--sidebar .entry-content > * { max-width: none; }

/* Text-Typografie über :where() ohne Gewicht: Klassen von Theme-Blöcken und Plugins setzen sich immer durch */
:where(.entry-content) h2 { margin-top: 1.9em; font-size: 26px; }
:where(.entry-content) h3 { margin-top: 1.6em; font-size: 21px; }
:where(.entry-content) h4 { margin-top: 1.4em; font-size: 18px; }
:where(.entry-content) ul,
:where(.entry-content) ol { padding-left: 1.3em; margin-bottom: 1.4em; }
:where(.entry-content) li + li { margin-top: .35em; }
:where(.entry-content) :where(p, li, td, dd, figcaption) > a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
:where(.entry-content) figure { margin: 2em auto; }
:where(.entry-content) img { border-radius: var(--vs-radius); }
:where(.entry-content) figcaption,
.wp-element-caption {
    margin-top: 8px;
    color: var(--vs-muted);
    font-size: 14px;
    text-align: left;
}
:where(.entry-content) blockquote,
.wp-block-quote {
    margin: 2em auto;
    padding: 24px 28px;
    border: 0;
    border-radius: var(--vs-radius);
    background: var(--vs-surface);
    font-size: 1.1em;
    font-style: italic;
}
:where(.entry-content) blockquote p:last-child { margin-bottom: 0; }
:where(.entry-content) blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--vs-muted); }

:where(.entry-content) table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.wp-block-table { overflow-x: auto; }
:where(.entry-content) th,
:where(.entry-content) td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--vs-line);
    text-align: left;
    vertical-align: top;
}
:where(.entry-content) th { background: var(--vs-surface); font-weight: 700; }

:where(.entry-content) code,
:where(.entry-content) pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
:where(.entry-content) pre { padding: 18px; overflow-x: auto; background: var(--vs-surface); border-radius: var(--vs-radius); }

:where(.entry-content) .wp-block-separator { border-top: 1px solid var(--vs-line); }

@media (min-width: 1024px) {
    :where(.entry-content) h2 { font-size: 30px; }
    :where(.entry-content) h3 { font-size: 23px; }
}

/* ==========================================================================
   Layout mit Seitenleiste
   ========================================================================== */
.vs-layout { display: grid; gap: 48px; }
.vs-layout__main { min-width: 0; }

@media (min-width: 1024px) {
    .vs-layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
}

.vs-sidebar .widget + .widget { margin-top: 40px; }
.widget-title {
    margin-bottom: 16px;
    font-size: 14px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding-block: 8px; border-bottom: 1px solid var(--vs-line); }
.widget li a { color: var(--vs-text); }
.widget li a:hover { color: var(--vs-accent); }

/* ==========================================================================
   Archiv-Kopf, Brotkrumen, Seitennummerierung
   ========================================================================== */
.vs-archive-head { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--vs-line); }
.vs-archive-head__label {
    margin: 0 0 6px;
    color: var(--vs-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.vs-archive-head__title { margin: 0; font-size: 32px; }
.vs-archive-head__desc { max-width: 760px; margin-top: 14px; color: var(--vs-muted); }
.vs-archive-head__desc p:last-child { margin-bottom: 0; }
.vs-archive-head__count { margin: 8px 0 0; color: var(--vs-muted); font-size: 14px; }
.vs-archive-head__search { margin-top: 18px; }

@media (min-width: 1024px) {
    .vs-archive-head__title { font-size: 44px; }
}

.vs-subcats ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.vs-subcats a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius);
    color: var(--vs-text);
    font-size: 14px;
}
.vs-subcats a:hover { border-color: var(--vs-accent); color: var(--vs-accent); }

.vs-breadcrumbs { margin-bottom: 18px; font-size: 13px; color: var(--vs-muted); }
.vs-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.vs-breadcrumbs li + li::before { content: "/"; margin-right: 4px; opacity: .5; }
.vs-breadcrumbs a { color: var(--vs-muted); }
.vs-breadcrumbs a:hover { color: var(--vs-accent); }

.vs-pagination { margin-top: 48px; }
.vs-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.vs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius);
    color: var(--vs-text);
    font-weight: 600;
}
.vs-pagination .page-numbers:hover { border-color: var(--vs-accent); color: var(--vs-accent); }
.vs-pagination .page-numbers.current { background: var(--vs-accent); border-color: var(--vs-accent); color: #fff; }
.vs-pagination .dots { border: 0; }

.vs-empty { padding: 40px 0; }

/* ==========================================================================
   Einzelbeitrag und Seiten
   ========================================================================== */
.vs-article__hero { margin: 0 auto 32px; }
.vs-article__hero img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--vs-radius); }
.vs-article__hero figcaption { margin-top: 8px; color: var(--vs-muted); font-size: 14px; }

.vs-article__head,
.vs-page__head {
    max-width: var(--vs-content);
    margin: 0 auto 28px;
}
.vs-layout--sidebar .vs-article__head { max-width: none; }

.vs-article__title,
.vs-page__title {
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.12;
}
.vs-article__lead {
    margin-bottom: 18px;
    color: var(--vs-muted);
    font-size: 1.15em;
    line-height: 1.55;
}

.vs-article__image,
.vs-page__image {
    max-width: var(--vs-container);
    margin: 0 auto 36px;
}
.vs-article__image img,
.vs-page__image img { width: 100%; border-radius: var(--vs-radius); }
.vs-article__image figcaption { margin-top: 8px; color: var(--vs-muted); font-size: 14px; }

.vs-page--wide .vs-page__head,
.vs-page--fullwidth .vs-page__head { max-width: none; }

@media (min-width: 1024px) {
    .vs-article__title,
    .vs-page__title { font-size: 46px; }
}

.vs-article__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: var(--vs-content);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--vs-line);
}
.vs-layout--sidebar .vs-article__foot,
.vs-layout--sidebar .vs-author,
.vs-layout--sidebar .vs-postnav,
.vs-layout--sidebar .vs-comments { max-width: none; }

.vs-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.vs-tags a { color: var(--vs-muted); }
.vs-tags a:hover { color: var(--vs-accent); }

.vs-share { display: flex; align-items: center; gap: 12px; }
.vs-share__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vs-muted); }
.vs-share ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vs-share a,
.vs-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius);
    background: transparent;
    color: var(--vs-text);
    cursor: pointer;
}
.vs-share a:hover,
.vs-share button:hover { border-color: var(--vs-accent); color: var(--vs-accent); }
.vs-share button.is-copied { border-color: var(--vs-accent); background: var(--vs-accent); color: #fff; }
.vs-share .vs-icon { width: 18px; height: 18px; }

.vs-author {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    max-width: var(--vs-content);
    margin: 36px auto 0;
    padding: 24px;
    border-radius: var(--vs-radius);
    background: var(--vs-surface);
}
.vs-author__avatar { border-radius: var(--vs-radius); }
.vs-author__label { margin: 0; color: var(--vs-muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vs-author__name { margin: 2px 0 6px; font-weight: 800; font-size: 18px; }
.vs-author__name a { color: var(--vs-text); }
.vs-author__bio { margin: 0; font-size: 15px; color: var(--vs-muted); line-height: 1.6; }

.vs-postnav { max-width: var(--vs-content); margin: 36px auto 0; }
.vs-postnav .nav-links { display: grid; gap: 16px; }
.vs-postnav a {
    display: block;
    height: 100%;
    padding: 18px 0;
    border-top: 1px solid var(--vs-line);
    color: var(--vs-text);
}
.vs-postnav a:hover .vs-postnav__title { color: var(--vs-accent); }
.vs-postnav__label { display: block; margin-bottom: 4px; color: var(--vs-muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vs-postnav__title { display: block; font-family: var(--vs-font-heading); font-weight: 700; line-height: 1.3; }

@media (min-width: 640px) {
    .vs-postnav .nav-links { grid-template-columns: 1fr 1fr; gap: 32px; }
    .vs-postnav .nav-next { text-align: right; }
}

.vs-related {
    margin-top: 64px;
    padding-block: 56px;
    background: var(--vs-surface);
}

.vs-page-links { margin-top: 24px; font-weight: 600; }

/* ── Kommentare ── */
.vs-comments { max-width: var(--vs-content); margin: 48px auto 0; }
.vs-comments__title { font-size: 22px; }
.vs-comments__list,
.vs-comments__list .children { margin: 0; padding: 0; list-style: none; }
.vs-comments__list .children { padding-left: 20px; border-left: 1px solid var(--vs-line); }
.vs-comments__list .comment-body { padding-block: 20px; border-bottom: 1px solid var(--vs-line); }
.vs-comments__list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.vs-comments__list .comment-author img { border-radius: var(--vs-radius); }
.vs-comments__list .says { display: none; }
.vs-comments__list .comment-metadata { margin: 4px 0 10px; font-size: 13px; }
.vs-comments__list .comment-metadata a { color: var(--vs-muted); }
.vs-comments__list .reply a { font-size: 13px; font-weight: 700; }
.comment-respond { margin-top: 36px; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

@media (min-width: 640px) {
    .vs-comments__list .children { padding-left: 32px; }
}

/* ── 404 ── */
.vs-404 { max-width: 640px; margin-bottom: 56px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.vs-footer {
    background: var(--vs-footer-bg);
    color: var(--vs-footer-text);
    font-size: 14px;
}
.vs-footer a { color: #fff; }
.vs-footer a:hover { color: var(--vs-accent); }
.vs-footer p { margin: 0; }

.vs-footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.vs-footer__menu li + li::before { content: "|"; margin: 0 10px; opacity: .45; }
.vs-footer__menu a { color: var(--vs-accent); }
.vs-footer__menu a:hover { color: #fff; }

.vs-footer__bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-block: 22px;
}
.vs-footer__left,
.vs-footer__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.vs-social { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vs-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--vs-radius);
}
.vs-social .vs-icon { width: 18px; height: 18px; }

/* Spalten */
.vs-footer__widgets {
    display: grid;
    gap: 32px;
    padding-block: 48px 32px;
}
.vs-footer--columns .vs-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.vs-footer .widget-title { color: #fff; }
.vs-footer .widget li { border-color: rgba(255, 255, 255, .12); }
.vs-footer .widget li a { color: var(--vs-footer-text); }
.vs-footer .widget li a:hover { color: #fff; }

/* Zentriert */
.vs-footer__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-block: 48px 36px;
    text-align: center;
}
.vs-footer__logo img { width: auto; max-height: 56px; }
.vs-footer__name { font-family: var(--vs-font-heading); font-size: 22px; font-weight: 800; color: #fff; }
.vs-footer__menu { justify-content: center; }
.vs-footer--centered .vs-footer__menu { justify-content: center; }
.vs-footer__texts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; opacity: .9; }

@media (min-width: 640px) {
    .vs-footer__widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .vs-footer__bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .vs-footer__widgets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
}

/* ==========================================================================
   WordPress-Kernklassen
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.sticky,
.bypostauthor { position: relative; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after { transition: none !important; animation: none !important; }
}
