/* ==========================================================================
   VORLAGEN-V2 — page-specific styles. Sits on top of main.min.css, which
   provides nav/footer/buttons/typography/grid. Everything here is scoped
   to .vl-* classes so it can't leak into other pages.
   ========================================================================== */

/* ----- Hero ------------------------------------------------------------ */
.vl-hub { background: #FAF8F4; min-height: 100vh; }
.vl-hero {
    padding: clamp(64px, 12vh, 140px) 0 clamp(48px, 8vh, 96px);
    position: relative;
    overflow: hidden;
}
.vl-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 50% at 50% 0%, rgba(43, 179, 163, 0.10), transparent 70%);
    pointer-events: none;
}
.vl-hero__stack {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.vl-hero__eyebrow {
    color: var(--rc-petrol);
    font-variant-numeric: tabular-nums;
    margin-bottom: clamp(12px, 2vw, 20px);
}
.vl-hero__title {
    color: var(--rc-blau);
    margin: 0 0 clamp(12px, 2vw, 22px);
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.022em;
}
.vl-hero__title-accent {
    color: var(--rc-petrol);
}
.vl-hero__lede {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto clamp(28px, 4vw, 44px);
    font-size: clamp(16px, 1.6vw, 19px);
}

/* ----- Search ---------------------------------------------------------- */
.vl-search {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}
.vl-search__icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rc-blau);
    pointer-events: none;
    line-height: 0;
    z-index: 2;
}
.vl-search__input {
    width: 100%;
    min-height: 72px;
    padding: 0 80px 0 60px;
    border: 1px solid rgba(8, 40, 73, 0.18);
    border-radius: var(--radius-lg);
    background: #ffffff;
    color: var(--rc-blau);
    font-family: var(--font-body);
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 400;
    box-shadow: 0 1px 0 rgba(8, 40, 73, 0.04);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.vl-search__input::placeholder { color: rgba(8, 40, 73, 0.45); }
.vl-search__input:focus {
    outline: none;
    border-color: var(--rc-petrol);
    box-shadow: 0 0 0 4px rgba(43, 179, 163, 0.18), 0 12px 32px rgba(8, 40, 73, 0.08);
}
.vl-search__hint {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    border: 1px solid rgba(8, 40, 73, 0.18);
    border-radius: 8px;
    background: #fff;
    color: rgba(8, 40, 73, 0.55);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
@media (max-width: 768px) { .vl-search__hint { display: none; } .vl-search__input { padding-right: 24px; } }

/* Floating results panel (below the search) */
.vl-search-results {
    position: relative;
    max-width: 720px;
    margin: 12px auto 0;
    background: #fff;
    border: 1px solid rgba(8, 40, 73, 0.10);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(8, 40, 73, 0.10);
    overflow: hidden;
    text-align: left;
}
.vl-search-results[hidden] { display: none; }
.vl-search-results__item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: baseline;
    padding: 14px 22px;
    color: var(--rc-blau);
    text-decoration: none;
    border-bottom: 1px solid rgba(8, 40, 73, 0.06);
    transition: background 140ms ease;
}
.vl-search-results__item:last-child { border-bottom: 0; }
.vl-search-results__item:hover,
.vl-search-results__item:focus-visible {
    background: rgba(43, 179, 163, 0.06);
    outline: none;
}
.vl-search-results__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}
.vl-search-results__title mark {
    background: rgba(255, 196, 0, 0.30);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}
.vl-search-results__cat {
    font-size: 12px;
    color: rgba(8, 40, 73, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    white-space: nowrap;
}
.vl-search-results__empty {
    padding: 22px;
    color: rgba(8, 40, 73, 0.6);
    text-align: center;
    font-size: 14px;
}

/* ----- Quick chips ----------------------------------------------------- */
.vl-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(20px, 3vw, 32px);
}
.vl-chip {
    appearance: none;
    border: 1px solid rgba(8, 40, 73, 0.18);
    background: #ffffff;
    color: var(--rc-blau);
    padding: 8px 16px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.vl-chip:hover { background: rgba(43, 179, 163, 0.08); border-color: var(--rc-petrol); }
.vl-chip.is-active { background: var(--rc-blau); color: #fff; border-color: var(--rc-blau); }
.vl-chip--reset { border-style: dashed; color: rgba(8, 40, 73, 0.62); font-weight: 500; }

/* ----- Bento mosaic ---------------------------------------------------- */
.vl-bento-wrap {
    padding: clamp(48px, 8vw, 96px) 0;
    background: #fff;
    border-top: 1px solid rgba(8, 40, 73, 0.06);
    border-bottom: 1px solid rgba(8, 40, 73, 0.06);
}
.vl-bento-head {
    margin-bottom: clamp(28px, 4vw, 48px);
    text-align: left;
}
.vl-bento-head .rc-eyebrow { color: var(--rc-petrol); }
.vl-bento-head .rc-h2 { color: var(--rc-blau); margin: 6px 0 0; }

/* Layout comes from Bootstrap (.row.g-4 > .col-12.col-md-6.col-lg-4) — no
   grid rules here. .vl-cat-card just styles the card itself. */
.vl-cat-card {
    background: #fff;
    border: 1px solid rgba(8, 40, 73, 0.08);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 2.4vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, opacity 200ms ease;
    position: relative;
    will-change: transform;
}
.vl-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(8, 40, 73, 0.10);
    border-color: rgba(43, 179, 163, 0.40);
}

.vl-bento[data-vl-filtering] .vl-cat-card { opacity: 0.32; }
.vl-bento[data-vl-filtering] .vl-cat-card.is-match { opacity: 1; }

.vl-cat-card__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
    text-decoration: none;
    color: inherit;
}
.vl-cat-card__icon {
    color: var(--rc-blau);
    flex: 0 0 auto;
    background: rgba(43, 179, 163, 0.12);
    padding: 8px;
    border-radius: 10px;
    width: 44px;
    height: 44px;
}
.vl-cat-card__head-text { min-width: 0; }
.vl-cat-card__title {
    color: var(--rc-blau);
    margin: 0;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.2;
}
.vl-cat-card__desc {
    margin: 4px 0 0;
    color: rgba(8, 40, 73, 0.62);
    font-size: 13.5px;
    line-height: 1.4;
}
.vl-cat-card__count {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--rc-blau);
    background: rgba(8, 40, 73, 0.06);
    padding: 4px 10px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    align-self: start;
}

.vl-cat-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(8, 40, 73, 0.06);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vl-cat-card__list a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    color: var(--rc-blau);
    padding: 6px 0;
    transition: color 140ms ease;
}
.vl-cat-card__list a:hover { color: var(--rc-petrol); }
.vl-cat-card__list a:hover .vl-cat-card__arrow { transform: translateX(3px); color: var(--rc-petrol); }
.vl-cat-card__arrow {
    color: rgba(8, 40, 73, 0.40);
    font-family: var(--font-body);
    flex: 0 0 auto;
    transition: transform 160ms ease, color 160ms ease;
}
.vl-cat-card__row-title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
}
.vl-cat-card__all {
    margin-top: 6px;
    color: var(--rc-petrol);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.vl-cat-card__all:hover { color: var(--rc-blau); }

/* ----- Trust band ------------------------------------------------------ */
.vl-trust {
    padding: clamp(40px, 6vw, 72px) 0;
    background: #FAF8F4;
}
.vl-trust__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
    margin-bottom: 24px;
}
@media (max-width: 820px) { .vl-trust__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vl-trust__stat { display: flex; flex-direction: column; gap: 4px; }
.vl-trust__stat .rc-h3 { color: var(--rc-blau); margin: 0; font-variant-numeric: tabular-nums; }
.vl-trust__label { color: rgba(8, 40, 73, 0.62); font-size: 13px; }
.vl-trust__note {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: rgba(8, 40, 73, 0.55);
    font-size: 13.5px;
    line-height: 1.55;
}

/* ==========================================================================
   CATEGORY PAGE
   ========================================================================== */
.vl-cat-page { background: #FAF8F4; padding: clamp(40px, 6vw, 80px) 0; }
.vl-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 13px;
    color: rgba(8, 40, 73, 0.6);
}
.vl-breadcrumbs a { color: inherit; text-decoration: none; }
.vl-breadcrumbs a:hover { color: var(--rc-petrol); }

.vl-cat-page__head {
    background: #fff;
    border: 1px solid rgba(8, 40, 73, 0.08);
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4vw, 44px);
    margin-bottom: 32px;
}
.vl-cat-page__head .rc-eyebrow { color: var(--rc-petrol); }
.vl-cat-page__head .rc-h1 { color: var(--rc-blau); margin: 6px 0 12px; }
.vl-cat-page__head .rc-lede { color: var(--text-secondary); margin: 0; }

.vl-doc-list {
    background: #fff;
    border: 1px solid rgba(8, 40, 73, 0.08);
    border-radius: var(--radius-xl);
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
.vl-doc-list__item { border-bottom: 1px solid rgba(8, 40, 73, 0.06); }
.vl-doc-list__item:last-child { border-bottom: 0; }
.vl-doc-list__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: clamp(14px, 2vw, 22px) clamp(18px, 3vw, 28px);
    text-decoration: none;
    color: var(--rc-blau);
    transition: background 140ms ease;
}
.vl-doc-list__link:hover { background: rgba(43, 179, 163, 0.06); }
.vl-doc-list__icon {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: rgba(43, 179, 163, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-blau);
    flex: 0 0 auto;
}
.vl-doc-list__text { min-width: 0; }
.vl-doc-list__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    color: var(--rc-blau);
}
.vl-doc-list__desc {
    margin: 2px 0 0;
    color: rgba(8, 40, 73, 0.62);
    font-size: 13.5px;
    line-height: 1.4;
}
.vl-doc-list__chev {
    color: rgba(8, 40, 73, 0.42);
    transition: transform 140ms ease, color 140ms ease;
    flex: 0 0 auto;
}
.vl-doc-list__link:hover .vl-doc-list__chev { color: var(--rc-petrol); transform: translateX(4px); }

/* ==========================================================================
   MUSTER PAGE
   ========================================================================== */
.vl-muster { background: #FAF8F4; padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 8vw, 96px); }
.vl-muster__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}
@media (min-width: 992px) {
    .vl-muster__layout { grid-template-columns: 1fr 260px; gap: 48px; }
}

.vl-muster__article {
    background: #fff;
    border: 1px solid rgba(8, 40, 73, 0.08);
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4vw, 48px);
}
.vl-muster__article .rc-eyebrow { color: var(--rc-petrol); }
.vl-muster__title {
    color: var(--rc-blau);
    margin: 6px 0 16px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.018em;
}
.vl-muster__meta {
    color: rgba(8, 40, 73, 0.55);
    font-size: 13px;
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.vl-muster__meta strong { color: var(--rc-blau); font-weight: 700; }
.vl-muster__jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
}
.vl-muster__jumps a {
    text-decoration: none;
    color: var(--rc-blau);
    background: rgba(8, 40, 73, 0.06);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: background 140ms ease;
}
.vl-muster__jumps a:hover { background: rgba(43, 179, 163, 0.16); }

.vl-muster__body { color: var(--text-primary); line-height: 1.65; font-size: 15.5px; }
.vl-muster__body h2 {
    color: var(--rc-blau);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 26px);
    margin: 36px 0 14px;
    letter-spacing: -0.012em;
}
.vl-muster__body h2:first-child { margin-top: 0; }
.vl-muster__body p { margin: 0 0 14px; }
.vl-muster__body ul { padding-left: 20px; margin: 0 0 18px; }
.vl-muster__body li { margin: 6px 0; }
.vl-muster__body a { color: var(--rc-petrol); }
.vl-muster__body details {
    background: rgba(8, 40, 73, 0.03);
    border: 1px solid rgba(8, 40, 73, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 12px 0;
}
.vl-muster__body summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--rc-blau);
}

.vl-muster__body pre.template,
.vl-muster__body pre {
    background: #0b1220;
    color: #e7edf5;
    border-radius: 14px;
    padding: clamp(16px, 2vw, 22px);
    overflow: auto;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 13.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    border: 1px solid #1f2937;
}
.vl-muster__body pre code { color: inherit; background: transparent; padding: 0; }

.vl-muster__cta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(8, 40, 73, 0.08);
}
.vl-muster__cta-note { color: rgba(8, 40, 73, 0.6); font-size: 13px; }

.vl-muster__aside {
    position: sticky;
    top: 88px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vl-muster__aside-card {
    background: #fff;
    border: 1px solid rgba(8, 40, 73, 0.08);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.vl-muster__aside-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--rc-blau);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}
.vl-muster__aside-card p { margin: 0; color: var(--text-secondary); font-size: 13.5px; line-height: 1.55; }
.vl-muster__aside-card .btn-primary { margin-top: 14px; width: 100%; justify-content: center; }
.vl-muster__aside-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vl-muster__aside-card ul a {
    color: var(--rc-blau);
    text-decoration: none;
    font-size: 13.5px;
}
.vl-muster__aside-card ul a:hover { color: var(--rc-petrol); }
