.blog-content {
    color: rgb(var(--on-surface-variant, 130 134 147));
    font-size: 1rem;
    line-height: 1.8;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: rgb(var(--on-surface, 228 231 235));
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    text-transform: uppercase;
}

.blog-content h3 {
    font-size: 1.35rem;
}

.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content table,
.blog-content pre {
    margin-bottom: 1.25rem;
}

.blog-content a {
    color: rgb(var(--primary, 0 242 254));
    text-decoration: underline;
    text-decoration-color: rgb(var(--primary, 0 242 254) / 0.45);
    text-underline-offset: 0.2em;
}

.blog-content a:hover {
    text-decoration-color: rgb(var(--primary, 0 242 254));
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.5rem;
}

.blog-content ul {
    list-style: none;
}

.blog-content ul > li {
    position: relative;
}

.blog-content ul > li::before {
    color: rgb(var(--primary, 0 242 254));
    content: "-";
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    left: -1.25rem;
    position: absolute;
}

.blog-content li + li {
    margin-top: 0.45rem;
}

.blog-content blockquote {
    border-left: 3px solid rgb(var(--primary, 0 242 254));
    color: rgb(var(--on-surface, 228 231 235));
    margin: 2rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
}

.blog-content table {
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    width: 100%;
}

.blog-content th,
.blog-content td {
    border: 1px solid rgb(136 146 170 / 0.5);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.blog-content th {
    background: rgb(var(--surface-container-high, 26 28 35));
    color: rgb(var(--on-surface, 228 231 235));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.blog-content code {
    background: rgb(var(--surface-container-high, 26 28 35));
    border: 1px solid rgb(var(--outline, 50 53 63) / 0.25);
    border-radius: 0.25rem;
    color: rgb(var(--primary, 0 242 254));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    padding: 0.1rem 0.3rem;
}

.blog-content pre {
    background: rgb(var(--surface-container-high, 26 28 35));
    border: 1px solid rgb(var(--outline, 50 53 63) / 0.3);
    border-radius: 0.5rem;
    overflow-x: auto;
    padding: 1rem;
}

.blog-content pre code {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
}

.blog-faq {
    border-top: 1px solid rgb(var(--outline, 50 53 63) / 0.18);
}

.blog-faq-title {
    color: rgb(var(--on-surface, 228 231 235));
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    text-transform: uppercase;
}

.blog-faq-list {
    border-top: 1px solid rgb(var(--outline, 50 53 63) / 0.16);
}

.blog-faq-item {
    border-bottom: 1px solid rgb(var(--outline, 50 53 63) / 0.16);
}

.blog-faq-question {
    align-items: center;
    color: rgb(var(--on-surface, 228 231 235));
    cursor: pointer;
    display: flex;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 700;
    gap: 1rem;
    justify-content: space-between;
    letter-spacing: 0;
    line-height: 1.35;
    list-style: none;
    min-height: 4.25rem;
    padding: 1.1rem 0;
}

.blog-faq-question::-webkit-details-marker {
    display: none;
}

.blog-faq-question::after {
    color: rgb(var(--on-surface, 228 231 235));
    content: "+";
    flex: 0 0 auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1;
    opacity: 0.9;
}

.blog-faq-item[open] .blog-faq-question::after {
    content: "×";
}

.blog-faq-answer {
    color: rgb(var(--on-surface-variant, 130 134 147));
    line-height: 1.75;
    max-width: 44rem;
    padding: 0 3rem 1.45rem 0;
}

html:not(.dark) .blog-content th,
html:not(.dark) .blog-content td {
    border-color: rgb(66 66 69 / 0.72);
}

.blog-download {
    background:
        radial-gradient(circle at 10% 0%, rgb(var(--primary, 0 242 254) / 0.2), transparent 34%),
        linear-gradient(135deg, rgb(var(--surface-container-high, 26 28 35) / 0.98), rgb(var(--surface, 11 15 25) / 0.96));
    border: 1px solid rgb(var(--primary, 0 242 254) / 0.36);
    border-radius: 0.5rem;
    box-shadow: 0 22px 54px rgb(0 0 0 / 0.24);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 2rem);
    position: relative;
}

.blog-download::before {
    background: linear-gradient(90deg, rgb(var(--primary, 0 242 254)), rgb(168 85 247), rgb(var(--secondary, 57 255 20)));
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.blog-download-kicker {
    color: rgb(var(--primary, 0 242 254));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.blog-download-title {
    color: rgb(var(--on-surface, 228 231 235));
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.blog-download-text {
    color: rgb(var(--on-surface-variant, 160 167 184));
    line-height: 1.7;
    margin: 0;
}

.blog-download-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.35rem;
}

.blog-download-badges span {
    border: 1px solid rgb(var(--primary, 0 242 254) / 0.36);
    border-radius: 999px;
    color: rgb(var(--primary, 0 242 254));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.32rem 0.62rem;
}

.blog-download-files {
    display: grid;
    gap: 0.75rem;
}

.blog-download-file,
.blog-download-zip {
    border-radius: 0.5rem;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.blog-download-file {
    align-items: flex-start;
    background: rgb(var(--surface-container, 24 24 30) / 0.74);
    border: 1px solid rgb(var(--outline, 50 53 63) / 0.62);
    color: rgb(var(--on-surface, 228 231 235));
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    padding: 1rem;
}

.blog-download-file:hover,
.blog-download-zip:hover {
    border-color: rgb(var(--primary, 0 242 254) / 0.72);
    box-shadow: 0 14px 34px rgb(var(--primary, 0 242 254) / 0.12);
    transform: translateY(-1px);
}

.blog-download-icon {
    align-items: center;
    border-radius: 0.5rem;
    display: flex;
    font-size: 1.55rem;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.blog-download-file-pdf .blog-download-icon {
    background: rgb(255 75 75 / 0.14);
    border: 1px solid rgb(255 75 75 / 0.44);
    color: rgb(255 93 93);
}

.blog-download-file-xlsx .blog-download-icon {
    background: rgb(var(--secondary, 57 255 20) / 0.12);
    border: 1px solid rgb(var(--secondary, 57 255 20) / 0.38);
    color: rgb(var(--secondary, 57 255 20));
}

.blog-download-file-body {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.blog-download-file-title {
    color: rgb(var(--on-surface, 228 231 235));
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.blog-download-file-desc {
    color: rgb(var(--on-surface-variant, 160 167 184));
    font-size: 0.92rem;
    line-height: 1.5;
}

.blog-download-file-meta {
    color: rgb(var(--primary, 0 242 254));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-download-zip {
    align-items: center;
    background: rgb(var(--primary, 0 242 254));
    border: 1px solid rgb(var(--primary, 0 242 254));
    color: rgb(2 6 23);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.blog-download-zip strong,
.blog-download-zip small,
.blog-download-zip-cta {
    display: block;
}

.blog-download-zip strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    line-height: 1.2;
}

.blog-download-zip small {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 0.2rem;
    opacity: 0.78;
}

.blog-download-zip-cta {
    flex: 0 0 auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

html:not(.dark) .blog-download {
    background:
        radial-gradient(circle at 10% 0%, rgb(var(--primary, 0 102 204) / 0.12), transparent 34%),
        linear-gradient(135deg, rgb(255 255 255), rgb(246 248 252));
    border-color: rgb(var(--primary, 0 102 204) / 0.34);
    box-shadow: 0 18px 44px rgb(29 29 31 / 0.1);
}

html:not(.dark) .blog-download-title,
html:not(.dark) .blog-download-file-title {
    color: rgb(var(--on-surface, 29 29 31));
}

html:not(.dark) .blog-download-text,
html:not(.dark) .blog-download-file-desc {
    color: rgb(48 58 76);
}

html:not(.dark) .blog-download-file {
    background: rgb(255 255 255 / 0.86);
    border-color: rgb(66 66 69 / 0.2);
}

@media (max-width: 760px) {
    .blog-download {
        grid-template-columns: 1fr;
    }

    .blog-download-zip {
        align-items: flex-start;
        flex-direction: column;
    }
}

.blog-tool-stack {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    margin: 2rem 0;
}

.blog-tool-card {
    background:
        linear-gradient(135deg, rgb(var(--primary, 0 242 254) / 0.08), transparent 52%),
        rgb(var(--surface-container, 24 24 30) / 0.92);
    border: 1px solid rgb(var(--outline, 50 53 63) / 0.5);
    border-radius: 0.75rem;
    box-shadow: 0 18px 42px rgb(0 0 0 / 0.16);
    min-width: 0;
    overflow: hidden;
}

.blog-tool-card-header {
    align-items: center;
    border-bottom: 1px solid rgb(var(--outline, 50 53 63) / 0.28);
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1rem 0.9rem;
}

.blog-tool-icon {
    align-items: center;
    background: rgb(var(--primary, 0 242 254) / 0.12);
    border: 1px solid rgb(var(--primary, 0 242 254) / 0.42);
    border-radius: 0.65rem;
    color: rgb(var(--primary, 0 242 254));
    display: flex;
    flex: 0 0 auto;
    font-size: 1.35rem;
    height: 2.4rem;
    justify-content: center;
    line-height: 1;
    width: 2.4rem;
}

.blog-tool-title {
    color: rgb(var(--on-surface, 228 231 235));
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0;
    min-width: 0;
    text-wrap: balance;
}

.blog-tool-options {
    display: grid;
    gap: 0;
}

.blog-tool-option {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: minmax(7.5rem, 0.42fr) minmax(0, 1fr);
    padding: 0.95rem 1rem;
}

.blog-tool-option + .blog-tool-option {
    border-top: 1px solid rgb(var(--outline, 50 53 63) / 0.18);
}

.blog-tool-label {
    align-self: start;
    border: 1px solid rgb(var(--primary, 0 242 254) / 0.34);
    border-radius: 999px;
    color: rgb(var(--primary, 0 242 254));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    padding: 0.35rem 0.55rem;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
}

.blog-tool-label-kommerziell,
.blog-tool-label-enterprise {
    border-color: rgb(168 85 247 / 0.42);
    color: rgb(168 85 247);
}

.blog-tool-label-open-source,
.blog-tool-label-privacy-friendly {
    border-color: rgb(var(--secondary, 57 255 20) / 0.38);
    color: rgb(var(--secondary, 57 255 20));
}

.blog-tool-label-cloud {
    border-color: rgb(var(--primary, 0 242 254) / 0.42);
    color: rgb(var(--primary, 0 242 254));
}

.blog-tool-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-width: 0;
}

.blog-tool-pill {
    align-items: center;
    background: rgb(var(--surface-container-high, 26 28 35) / 0.78);
    border: 1px solid rgb(var(--outline, 50 53 63) / 0.34);
    border-radius: 999px;
    color: rgb(var(--on-surface, 228 231 235));
    display: inline-flex;
    font-size: 0.92rem;
    justify-content: center;
    line-height: 1.25;
    min-height: 2.15rem;
    max-width: 100%;
    padding: 0.42rem 0.8rem;
    text-align: center;
    overflow-wrap: anywhere;
}

html:not(.dark) .blog-tool-card {
    background:
        linear-gradient(135deg, rgb(var(--primary, 0 102 204) / 0.06), transparent 52%),
        rgb(var(--surface-container, 251 251 253));
    border-color: rgb(var(--outline, 210 210 215));
    box-shadow: 0 14px 34px rgb(29 29 31 / 0.08);
}

html:not(.dark) .blog-tool-card-header,
html:not(.dark) .blog-tool-option + .blog-tool-option {
    border-color: rgb(66 66 69 / 0.18);
}

html:not(.dark) .blog-tool-pill {
    background: rgb(255 255 255 / 0.9);
    border-color: rgb(66 66 69 / 0.24);
    color: rgb(var(--on-surface, 29 29 31));
}

@media (max-width: 640px) {
    .blog-tool-option {
        grid-template-columns: 1fr;
    }

    .blog-tool-label {
        justify-self: start;
        text-align: left;
    }
}

.blog-callout {
    --callout-color: 168 85 247;
    --callout-border: rgb(var(--callout-color) / 0.65);
    --callout-bg: linear-gradient(
        135deg,
        rgb(var(--callout-color) / 0.16),
        rgb(var(--surface-container-high, 26 28 35) / 0.72)
    );
    background: var(--callout-bg);
    border: 1px solid var(--callout-border);
    border-left-width: 4px;
    border-radius: 0.5rem;
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.14);
    margin: 2rem 0;
    padding: 1rem 1.15rem;
}

.blog-callout-alert {
    --callout-color: 255 75 75;
}

.blog-callout-important {
    --callout-color: 168 85 247;
}

.blog-callout-label {
    color: rgb(var(--callout-color));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.blog-callout-body {
    color: rgb(var(--on-surface, 228 231 235));
    line-height: 1.7;
}

html:not(.dark) .blog-callout {
    --callout-bg: linear-gradient(
        135deg,
        rgb(var(--callout-color) / 0.11),
        rgb(255 255 255 / 0.92)
    );
    box-shadow: 0 14px 32px rgb(29 29 31 / 0.08);
}

html:not(.dark) .blog-callout-body {
    color: rgb(var(--on-surface, 29 29 31));
}

@media (max-width: 640px) {
    .blog-content table {
        display: table;
        font-size: 0.72rem;
        line-height: 1.4;
        overflow-x: visible;
        table-layout: fixed;
        width: 100%;
    }

    .blog-content th,
    .blog-content td {
        overflow-wrap: anywhere;
        padding: 0.4rem 0.45rem;
        word-break: break-word;
    }

    .blog-content th {
        font-size: 0.62rem;
        letter-spacing: 0;
        padding: 0.4rem 0.35rem;
    }

    .blog-content pre {
        border-radius: 0.4rem;
        font-size: 0.72rem;
        line-height: 1.45;
        padding: 0.65rem 0.7rem;
    }

    .blog-content pre code {
        font-size: inherit;
    }

    .blog-content :not(pre) > code {
        font-size: 0.8em;
        overflow-wrap: anywhere;
        padding: 0.08rem 0.25rem;
        word-break: break-word;
    }
}

@media (max-width: 400px) {
    .blog-content table {
        font-size: 0.66rem;
    }

    .blog-content th,
    .blog-content td {
        padding: 0.32rem 0.3rem;
    }

    .blog-content th {
        font-size: 0.56rem;
    }

    .blog-content pre {
        font-size: 0.65rem;
        padding: 0.55rem 0.6rem;
    }
}

/* Dark mode: emphasise inline bold text in the site's primary blue
   (visible cue for product names, key concepts, etc. — e.g. "n8n Cloud"). */
html.dark .blog-content strong,
html.dark .blog-content b {
    color: rgb(var(--primary, 0 242 254));
}

/* References section ("Quellen" / "Sources") — always the last section of an
   article. Visually de-emphasised vs the body: separator rule, smaller muted
   label, hanging-indent entries, long URLs wrap. Targets the toc-generated
   heading ids; the entries are the <p> siblings that follow it. */
.blog-content h2#quellen,
.blog-content h2#sources,
.blog-content h2#references,
.blog-content h2#quellenangaben {
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgb(var(--on-surface-variant, 130 134 147) / 0.25);
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: rgb(var(--on-surface, 228 231 235));
}

.blog-content h2#quellen ~ p,
.blog-content h2#sources ~ p,
.blog-content h2#references ~ p,
.blog-content h2#quellenangaben ~ p {
    margin-bottom: 0.5rem;
    padding-left: 2rem;
    text-indent: -2rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgb(var(--on-surface-variant, 130 134 147) / 0.85);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Citation marker [n] in the site's primary blue (entry text stays muted). */
.blog-content .blog-ref-num {
    color: rgb(var(--primary, 0 242 254));
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* In-text citation [n]: real superscript (<sup>) linking to the reference.
   The <sup> element raises it above the baseline natively; we only theme it. */
.blog-content sup.blog-cite {
    font-size: 0.7em;
    line-height: 0;
    white-space: nowrap;
    padding-left: 0.1em;
}

.blog-content sup.blog-cite a {
    color: rgb(var(--primary, 0 242 254));
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    text-decoration: none;
}

.blog-content sup.blog-cite a:hover {
    text-decoration: underline;
}

/* Offset anchor jumps so the targeted reference isn't hidden under the header. */
.blog-content [id^="ref-"] {
    scroll-margin-top: 6rem;
}
