*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    font-family: "Inter", system-ui, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    --mono: ui-monospace, monospace;
}
/* keep the footer pinned to the bottom on short pages */
body > main {
    flex: 1 0 auto;
}
body > .site-footer {
    flex-shrink: 0;
}

/* ===== Site header ===== */
.site-header {
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', system-ui, sans-serif;
}
.sh-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.sh-brand { display: inline-flex; align-items: center; }
.sh-brand img { display: block; }
/* logo is white — darken it on the light theme */
html:not([data-variant="dark"]) .sh-brand img { filter: brightness(0); }
.sh-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.sh-link {
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
    color: rgba(10, 10, 10, 0.5);
    transition: color 150ms;
}
.sh-link:hover { color: #0A0A0A; }
.sh-link.is-active {
    color: #0A0A0A;
    font-weight: 500;
}
html[data-variant="dark"] .sh-link { color: rgba(255, 255, 255, 0.5); }
html[data-variant="dark"] .sh-link:hover,
html[data-variant="dark"] .sh-link.is-active { color: #fff; }

/* ===== Blog index (/all) ===== */
.blog-index {
    --bi-bg: #ffffff;
    --bi-fg: #000000;
    --bi-muted: #929292;
    --bi-sub: #575757;
    --bi-pill-bg: #f2f2f2;
    --bi-pill-fg: #000000;
    --bi-pill-ring: rgba(10, 10, 10, 0.15);
    --bi-active-bg: #000000;
    --bi-active-fg: #ffffff;
    --bi-border: #eaeaea;
    --bi-field-border: #c7c7c7;
    --bi-img-bg: #171717;
    --mono: ui-monospace, monospace;

    max-width: 1480px;
    margin: 0 auto;
    padding: 24px 48px 96px;
    background: var(--bi-bg);
    color: var(--bi-fg);
    -webkit-font-smoothing: antialiased;
}

/* dark variant */
html[data-variant="dark"] body {
    background: #0a0a0a;
}
html[data-variant="dark"] .blog-index {
    --bi-bg: #0a0a0a;
    --bi-fg: #ffffff;
    --bi-muted: #8a8a8a;
    --bi-sub: #b0b0b0;
    --bi-pill-bg: #1c1c1c;
    --bi-pill-fg: #e8e8e8;
    --bi-pill-ring: rgba(255, 255, 255, 0.2);
    --bi-active-bg: #ffffff;
    --bi-active-fg: #000000;
    --bi-border: #232323;
    --bi-field-border: #333333;
    --bi-img-bg: #0f0f0f;
}

/* hero */
.bi-hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0 56px;
}
.bi-eyebrow {
    display: none; /* design language: no eyebrows */
}
.bi-title {
    margin: 0;
    font-size: clamp(2.25rem, 4.5vw, 60px);
    line-height: 1.05;
    letter-spacing: clamp(-1.4px, -0.02em, -0.4px);
    font-weight: 500;
    text-wrap: balance;
}
.bi-subtitle {
    margin: 0;
    max-width: 520px;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--bi-sub);
    text-wrap: balance;
}

/* controls row */
.bi-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 0;
    border-bottom: 1px solid var(--bi-border);
    margin-bottom: 40px;
}
.bi-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.bi-pill {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 9999px;
    background: transparent;
    box-shadow: 0 0 0 1px var(--bi-pill-ring, rgba(10, 10, 10, 0.15));
    color: var(--bi-pill-fg);
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 150ms, color 150ms;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.bi-pill:hover {
    background: rgba(0, 0, 0, 0.03);
}
.bi-pill.is-active {
    background: var(--bi-active-bg);
    color: var(--bi-active-fg);
    box-shadow: none;
}

.bi-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 224px;
    padding: 8px 16px 8px 12px;
    border: 0;
    box-shadow: 0 0 0 1px var(--bi-pill-ring, rgba(10, 10, 10, 0.15));
    border-radius: 9999px;
    background: var(--bi-bg);
    color: var(--bi-muted);
}
.bi-search-icon {
    flex-shrink: 0;
}
.bi-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--bi-fg);
}
.bi-search-input::placeholder {
    color: var(--bi-muted);
}

/* featured banner — one narrow rectangle */
.bi-featured {
    margin-bottom: 72px;
}
.bi-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0;
    text-decoration: none;
    background: var(--bi-img-bg);
    height: 200px;
}
.bi-card-img {
    position: absolute;
    inset: 0;
    background-color: var(--bi-img-bg);
    background-size: cover;
    background-position: 50%;
    transition: transform 0.4s ease;
}
.bi-card:hover .bi-card-img {
    transform: scale(1.04);
}
.bi-card-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 40%),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 32%,
            rgba(0, 0, 0, 0.14) 62%,
            rgba(0, 0, 0, 0.58) 100%
        );
}
.bi-card-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}
.bi-card-title {
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    min-width: 0;
}
.bi-card-date {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 20px;
}

/* category badge */
.bi-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
}
.bi-badge-mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bi-badge-label {
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

/* more posts list */
.bi-more-label {
    margin: 0 0 32px;
    font-size: clamp(1.5rem, 2.5vw, 32px);
    font-weight: 400;
    line-height: 1.125;
    letter-spacing: -0.32px;
    color: var(--bi-fg);
    text-wrap: balance;
}
.bi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 64px;
    row-gap: 56px;
}
.bi-cell {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--bi-fg);
    transition: opacity 0.15s;
}
.bi-cell:hover {
    opacity: 0.6;
}
.bi-cell-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    background-color: var(--bi-img-bg);
    background-size: cover;
    background-position: 50%;
    margin-bottom: 16px;
}
.bi-cell-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
}
.bi-cell-desc {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: var(--bi-sub);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bi-cell-date {
    margin-top: auto;
    font-size: 13px;
    line-height: 20px;
    color: var(--bi-muted);
}
.bi-empty {
    color: var(--bi-muted);
    font-size: 13px;
    line-height: 20px;
}

/* pager / load more */
.bi-pager {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}
.bi-loadmore {
    padding: 10px 20px;
    border: 0;
    box-shadow: 0 0 0 1px var(--bi-pill-ring, rgba(10, 10, 10, 0.15));
    border-radius: 9999px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--bi-fg);
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s;
}
.bi-loadmore:hover {
    background: var(--bi-active-bg);
    color: var(--bi-active-fg);
}

/* ===== Post article page ===== */
.post-page {
    max-width: 100%;
    background: #fff;
    color: #0a0a0a;
    -webkit-font-smoothing: antialiased;
}
.post-page-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
}
.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 40px 0 48px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: rgba(10, 10, 10, 0.65);
    text-decoration: none;
    transition: color 0.15s;
}
.post-back:hover {
    color: #0a0a0a;
}
.post-back svg {
    flex-shrink: 0;
}

.post-header {
    margin-bottom: 48px;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 20px;
    color: rgba(10, 10, 10, 0.5);
}
.post-meta-cat {
    color: #0a0a0a;
}
.post-meta-sep {
    opacity: 0.4;
}
.post-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
    text-wrap: balance;
}
.post-excerpt {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #575757;
    margin: 0;
    max-width: 60ch;
    letter-spacing: -0.01em;
}

.post-cover {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 56px;
    padding: 0 32px;
    box-sizing: border-box;
}
.post-cover img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.post-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #1a1a1a;
    padding-bottom: 80px;
}
.post-body p {
    margin: 0 0 0.5rem;
}
.post-body p:has(> br:only-child) {
    line-height: 0.75;
    margin: 0;
}
.post-body .ql-align-center {
    text-align: center;
}
.post-body .ql-align-right {
    text-align: right;
}
.post-body .ql-align-justify {
    text-align: justify;
}
.post-body h1 {
    font-size: 1.875rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    margin: 2.5rem 0 0.75rem;
    line-height: 1.2;
}
.post-body h2 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 2rem 0 0.625rem;
    line-height: 1.25;
}
.post-body h3 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 1.5rem 0 0.5rem;
}
.post-body h1 strong, .post-body h2 strong, .post-body h3 strong,
.post-body h1 b, .post-body h2 b, .post-body h3 b {
    font-weight: inherit;
}
.post-body strong, .post-body b {
    font-weight: 600;
    color: #0a0a0a;
}
.post-body blockquote {
    border-left: 2px solid #e0e0e0;
    margin: 2rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: #575757;
    font-style: italic;
}
.post-body a {
    color: #0a0a0a;
    text-underline-offset: 3px;
}
.post-body code {
    background: #f4f4f4;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: var(--mono, monospace);
}
.post-body pre {
    background: #111;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.875rem;
    margin: 1.5rem 0;
}
.post-body pre code {
    background: none;
    padding: 0;
}
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 2rem auto;
}
.post-body ul,
.post-body ol {
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}
.post-body li {
    margin-bottom: 0.25rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 80px;
    border-top: 1px solid #eaeaea;
}
.post-tag {
    font-family: var(--mono, monospace);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #929292;
    text-decoration: none;
    transition: color 0.15s;
}
.post-tag:hover {
    color: #0a0a0a;
}

@media (max-width: 640px) {
    .post-page-inner {
        padding: 0 20px;
    }
    .post-cover {
        padding: 0 20px;
    }
    .post-back {
        margin: 28px 0 36px;
    }
    .post-header {
        margin-bottom: 32px;
    }
}

/* ===== Article dialog ===== */
.bi-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.bi-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}
@media (prefers-reduced-motion: reduce) {
    .bi-modal-backdrop,
    .bi-modal {
        transition: none !important;
    }
}
.bi-modal {
    position: relative;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    overflow-y: auto;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition:
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease;
}
.bi-modal-backdrop.is-open .bi-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.bi-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.bi-modal-close:hover {
    background: rgba(0, 0, 0, 0.15);
}
.bi-modal-cover {
    width: 100%;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}
.bi-modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bi-modal-body {
    padding: 2.5rem 3rem 3.5rem;
}
.bi-modal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #929292;
}
.bi-modal-cat {
    color: #000;
}
.bi-modal-sep {
    opacity: 0.4;
}
.bi-modal-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 2rem;
    color: #000;
    text-wrap: balance;
}
.bi-modal-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: #1a1a1a;
    max-width: 68ch;
}
.bi-modal-prose p {
    margin: 0 0 0.5rem;
}
.bi-modal-prose p:has(> br:only-child) {
    line-height: 0.75;
    margin: 0;
}
.bi-modal-prose h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    letter-spacing: -0.02em;
}
.bi-modal-prose h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.25rem 0 0.375rem;
    letter-spacing: -0.015em;
}
.bi-modal-prose h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1rem 0 0.25rem;
}
.bi-modal-prose blockquote {
    border-left: 2px solid #000;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #444;
    font-style: italic;
}
.bi-modal-prose a {
    color: #000;
    text-underline-offset: 3px;
}
.bi-modal-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1.25rem auto;
}
.bi-modal-prose code {
    background: #f2f2f2;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
}
.bi-modal-prose pre {
    background: #1a1a1a;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
}
.bi-modal-prose .ql-align-center {
    text-align: center;
}
.bi-modal-prose .ql-align-right {
    text-align: right;
}
.bi-modal-prose .ql-align-justify {
    text-align: justify;
}
.bi-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
}
.bi-modal-tag {
    font-family: var(--mono);
    font-size: 12px;
    color: #929292;
    text-transform: uppercase;
}
.bi-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4rem;
    min-height: 200px;
}
.bi-modal-loading span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c0c0c0;
    animation: bi-pulse 1.2s ease-in-out infinite;
}
.bi-modal-loading span:nth-child(2) {
    animation-delay: 0.2s;
}
.bi-modal-loading span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes bi-pulse {
    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
.bi-modal-error {
    padding: 4rem;
    text-align: center;
    color: #929292;
    font-family: var(--mono);
    font-size: 13px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .bi-modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }
    .bi-modal {
        max-height: 94vh;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
    }
    .bi-modal-body {
        padding: 1.5rem 1.25rem 3rem;
    }
    .bi-modal-cover {
        height: 200px;
    }
    .blog-index {
        padding: 16px 20px 64px;
    }
    .bi-title {
        font-size: 44px;
    }
    .bi-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .bi-search {
        width: 100%;
    }
    .bi-featured {
        margin-bottom: 56px;
    }
    .bi-card {
        height: 160px;
    }
    .bi-card-title {
        font-size: 19px;
    }
    .bi-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 32px;
        row-gap: 48px;
    }
}
@media (max-width: 560px) {
    .bi-card {
        height: 140px;
    }
    .bi-card-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px;
    }
    .bi-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}

/* ===== Site Footer ===== */
.site-footer {
    background: #0a0a0a;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}
.sf-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

/* top: wordmark + two-column link grid */
.sf-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 64px;
    padding: 72px 0 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sf-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}
.sf-brand-logo {
    display: block;
    line-height: 0;
}
.sf-brand-logo img {
    height: 32px;
    width: auto;
    opacity: 0.88;
    display: block;
    transition: opacity 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .sf-brand-logo:hover img { opacity: 1; }
}
.sf-socials {
    display: flex;
    gap: 8px;
}
.sf-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.05);
    transition: color 150ms ease, background 150ms ease;
    text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
    .sf-social-link:hover {
        color: rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.1);
    }
}
.sf-social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.sf-nav {
    display: flex;
    gap: 56px;
}
.sf-nav-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sf-link {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .sf-link:hover { color: rgba(255, 255, 255, 0.85); }
}

/* bottom: impressum 4-col + copyright */
.sf-legal {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    padding: 36px 0 44px;
}
.sf-impressum {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 40px;
    flex: 1;
}
.sf-imp-col {
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.28);
}
.sf-imp-label {
    display: block;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
    line-height: 1;
}
.sf-imp-col a {
    color: rgba(255, 255, 255, 0.28);
    text-decoration: none;
    transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .sf-imp-col a:hover { color: rgba(255, 255, 255, 0.6); }
}
.sf-copy {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.18);
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 1024px) {
    .sf-impressum { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .sf-inner { padding: 0 20px; }
    .sf-main { flex-direction: column; gap: 36px; padding: 48px 0 40px; }
    .sf-legal { flex-direction: column; align-items: flex-start; padding: 28px 0 36px; }
    .sf-copy { align-self: flex-end; }
}
@media (max-width: 560px) {
    .sf-nav { flex-direction: column; gap: 0; }
    .sf-nav-col { flex-direction: row; flex-wrap: wrap; gap: 14px 24px; padding-bottom: 20px; }
    .sf-impressum { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
    .sf-impressum { grid-template-columns: 1fr; }
}

/* ===== Embed list pages (/resources, /webinars) ===== */
/* header mirrors the embed component's .root box (max-width 1480, no
   side padding) so the title lines up with the cards below */
.embed-list-page {
  padding: 80px 0 120px;
  color: #0A0A0A;
  -webkit-font-smoothing: antialiased;
}
.elp-header {
  max-width: 1480px;
  margin: 0 auto 56px;
}
.elp-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: clamp(-0.4px, -0.02em, -1.2px);
  font-weight: 500;
  max-width: 720px;
  text-wrap: balance;
  white-space: pre-line;
}
.elp-subtitle {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.5);
  max-width: 32rem;
  text-wrap: pretty;
}
html[data-variant="dark"] .embed-list-page { color: #fff; }
html[data-variant="dark"] .elp-subtitle { color: rgba(255, 255, 255, 0.5); }

/* ===== Webinar landing (/webinar/{slug}) ===== */
.webinar-page {
  --wb-accent: #c4f24a;
  --wb-ink: #0a0a0a;
  --wb-muted: rgba(10, 10, 10, 0.6);
  --wb-book-from: #18181b;   /* zinc-900 */
  --wb-book-to: #3f3f46;     /* zinc-700 */
  --wb-book-shadow: rgba(0,0,0,.18);
  max-width: 1240px; margin: 0 auto; padding: 64px 48px 120px; color: var(--wb-ink);
  -webkit-font-smoothing: antialiased;
}
.webinar-hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.webinar-eyebrow {
  display: none; /* design language: no eyebrows */
}
.webinar-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 48px;
  font-size: 14px; font-weight: 500; line-height: 20px;
  color: color-mix(in srgb, var(--wb-ink) 65%, transparent); text-decoration: none; transition: color .15s ease;
}
.webinar-back:hover { color: var(--wb-ink); }
.webinar-back svg { flex-shrink: 0; }
.webinar-date {
  margin: 0 0 20px; font-size: 13px; line-height: 20px;
  color: color-mix(in srgb, var(--wb-ink) 50%, transparent);
}
.webinar-title {
  margin: 0 0 20px; font-size: clamp(2rem, 4vw, 52px); line-height: 1.05;
  letter-spacing: clamp(-1.2px, -0.02em, -0.4px);
  font-weight: 500; text-wrap: balance;
}
.webinar-subtitle {
  margin: 0 0 24px; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 400; color: var(--wb-ink); text-wrap: balance;
}
.webinar-tags {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0;
}
.webinar-tag {
  border: 1px solid color-mix(in srgb, var(--wb-ink) 8%, transparent);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; line-height: 16px;
  letter-spacing: .01em; color: var(--wb-muted);
}
.webinar-body {
  margin-top: 72px; font-size: 16px; line-height: 1.7; color: var(--wb-body, #333); max-width: 65ch;
}
.webinar-body :is(h2,h3) { letter-spacing: -0.01em; }
.webinar-body ul { padding-left: 1.1em; }
.webinar-body li { margin: .35em 0; }
.webinar-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 28px;
  padding: 10px 20px; border-radius: 9999px; background: var(--wb-ink);
  color: #fff; font-weight: 500; font-size: 14px; line-height: 20px; text-decoration: none;
  transition: background-color 150ms, color 150ms;
}
.webinar-cta:hover { background: color-mix(in srgb, var(--wb-ink) 85%, transparent); }

.resource-file-meta {
  margin: 12px 0 0; font-size: 13px; line-height: 20px; color: var(--wb-muted);
}

/* download + form-link buttons side by side */
.resource-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.resource-actions .webinar-cta { margin-top: 28px; }
.webinar-cta-secondary {
  background: transparent; color: var(--wb-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wb-ink) 35%, transparent);
}
.webinar-cta-secondary:hover {
  background: color-mix(in srgb, var(--wb-ink) 6%, transparent);
  color: var(--wb-ink);
}

/* embedded lead-capture form (e.g. MailerLite) replaces the buttons */
/* -18px cancels the embed's built-in left padding so it aligns with the text column */
.resource-embed { margin-top: 28px; margin-left: -18px; max-width: 440px; }
.resource-embed .ml-form-embedContainer { display: block !important; }

/* with an embed the hero is taller — let the book grow with it */
.resource-page--embed .book3d__inner { width: 320px; }
.resource-page--embed .book3d__spine { transform: translateX(292px) rotateY(90deg); }

/* Hero image (webinar detail) */
.webinar-hero-img {
  display: block; width: 100%; max-width: 520px; aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 3D book (cuicui modern-book-cover, plain CSS) — used on resource pages */
.webinar-hero-visual { display: flex; justify-content: center; }
.book3d { perspective: 1000px; }
.book3d__inner {
  position: relative; width: 260px; aspect-ratio: 3 / 4;
  transform-style: preserve-3d; transform: rotateY(-26deg);
  transition: transform 1s ease; border-radius: 8px;
}
.book3d:hover .book3d__inner { transform: rotateY(-10deg); }
.book3d__cover, .book3d__back {
  position: absolute; inset: 0; border-radius: 8px; overflow: hidden;
  background-image: linear-gradient(to top right, var(--wb-book-from), var(--wb-book-to));
}
.book3d__cover {
  transform: translateZ(25px);
  box-shadow: 5px 5px 20px var(--wb-book-shadow);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 24px; color: #fff;
}
/* optional cover image as faint backdrop inside the book */
.book3d__cover::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .28;
  background-image: var(--wb-cover, none); background-size: cover; background-position: center;
  mix-blend-mode: luminosity;
}
/* page-binding sheen on the left edge (from cuicui) */
.book3d__cover::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; min-width: 8.2%; z-index: 1; opacity: .25;
  background:
    linear-gradient(90deg, hsla(0,0%,100%,0), hsla(0,0%,100%,0) 12%, hsla(0,0%,100%,.25) 29.25%, hsla(0,0%,100%,0) 50.5%, hsla(0,0%,100%,0) 75.25%, hsla(0,0%,100%,.25) 91%, hsla(0,0%,100%,0)),
    linear-gradient(90deg, rgba(0,0,0,.03), rgba(0,0,0,.1) 12%, transparent 30%, rgba(0,0,0,.02) 50%, rgba(0,0,0,.2) 73.5%, rgba(0,0,0,.5) 75.25%, rgba(0,0,0,.15) 85.25%, transparent);
}
/* books with a real cover image: show the image only, full strength, no overlay text */
.book3d__cover--image { padding: 0; }
.book3d__cover--image::after { opacity: 1; mix-blend-mode: normal; }
.book3d__pill, .book3d__title, .book3d__sub { position: relative; z-index: 2; }
.book3d__pill {
  align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--wb-accent);
  border: 1px solid color-mix(in srgb, var(--wb-accent) 60%, transparent);
  border-radius: 999px; padding: 4px 10px; margin-bottom: auto;
}
.book3d__title {
  margin: 14px 0 6px; font-size: 26px; line-height: 1.1; font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--wb-accent);
  text-underline-offset: 4px; text-wrap: balance;
}
.book3d__sub { margin: 0; font-size: 13px; line-height: 1.5; opacity: .85; }
.book3d__back { transform: translateZ(-25px); box-shadow: -10px 0 50px 10px var(--wb-book-shadow); }
.book3d__spine {
  position: absolute; left: 0; top: 3px; bottom: 3px; width: 48px;
  transform: translateX(232px) rotateY(90deg);
  background: linear-gradient(90deg, rgba(255,255,255,1) 50%, rgba(249,249,249,1) 50%);
}

@media (prefers-reduced-motion: reduce) {
  .book3d__inner { transition: none; }
  .book3d:hover .book3d__inner { transform: rotateY(-26deg); }
}
@media (max-width: 900px) {
  .webinar-page { padding: 40px 22px 80px; }
  .webinar-hero { grid-template-columns: 1fr; gap: 40px; }
  .webinar-hero-visual { order: -1; }
  .webinar-title { font-size: 40px; }
}

/* Dark site variant */
html[data-variant="dark"] .webinar-page { --wb-ink: #ffffff; --wb-muted: rgba(255,255,255,0.6); --wb-book-shadow: rgba(0,0,0,.55); color: #fff; }
html[data-variant="dark"] .webinar-subtitle { color: var(--wb-accent); }
html[data-variant="dark"] .webinar-body { color: #cfcfcf; }
html[data-variant="dark"] .webinar-cta { background: var(--wb-accent); color: #0a0a0a; }
