:root {
    --black: #000000;
    --white: #ffffff;
    --accent: #39c97c;
    /* Used by icon-utilities for Lucide strokes (label icons, meta, chips). */
    --red: var(--accent);
    --accent-soft: rgba(57, 201, 124, 0.18);
    --gray-dark: #0a0a0a;
    --gray-mid: #151515;
    --gray-light: #2f2f2f;
    --panel: rgba(255, 255, 255, 0.03);
    --panel-strong: rgba(255, 255, 255, 0.05);
    --text-dim: rgba(255, 255, 255, 0.66);
    --text-faint: rgba(255, 255, 255, 0.26);
    --header-h: 72px;
    --content-max: 1200px;
    --page-pad-x: 3rem;
    --page-pad-mobile: 1.5rem;
    --inner-aside-w: 260px;
    --inner-grid-gap: 5rem;
    --inner-grid-gap-tight: 3rem;
    --inner-content-max: 760px;
    --article-column-max: 980px;
    --article-inline-media-width: 300px;
    --admin-bar-offset: 0px;
    --font-body: 'Space Grotesk', sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 998;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.05;
}

a {
    color: var(--white);
}

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

.site-main {
    position: relative;
    z-index: 1;
}

.site-header {
    position: fixed;
    top: var(--admin-bar-offset);
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-light);
}

body.admin-bar {
    --admin-bar-offset: 32px;
}

.header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--page-pad-x);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo-pixel {
    display: grid;
    grid-template-columns: repeat(4, 7px);
    gap: 2px;
}

.logo-pixel span {
    width: 7px;
    height: 7px;
    background: var(--white);
}

.logo-pixel .off {
    background: transparent;
}

.logo-text {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.logo-text .pipe {
    color: var(--gray-light);
    margin: 0 0.2em;
}

.main-nav {
    display: flex;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

#nav-backdrop {
    display: none;
}

.hero,
.page-hero {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--page-pad-x);
    padding-right: var(--page-pad-x);
}

.hero-home {
    position: relative;
    padding-top: calc(var(--header-h) + var(--admin-bar-offset) + 2.75rem);
    padding-bottom: 2.75rem;
}

.hero-home::before,
.hero-home::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-home::before {
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(57, 201, 124, 0.025) 0, rgba(57, 201, 124, 0.025) 1px, transparent 1px, transparent 88px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 88px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 88%);
}

.hero-home::after {
    z-index: 0;
    background:
        radial-gradient(circle at 78% 52%, rgba(57, 201, 124, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18));
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 720px;
    align-self: end;
}

.hero-eyebrow,
.aside-label,
.card-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title,
.page-title,
.editorial-aside h2,
.contact-info h2,
.imprint-heading h2 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0.03em;
}

.hero-title {
    margin-top: 1rem;
    font-size: clamp(4rem, 9vw, 8rem);
    overflow-wrap: break-word;
    hyphens: auto;
}

.page-hero {
    padding-top: calc(var(--header-h) + var(--admin-bar-offset) + 4rem);
    padding-bottom: 2rem;
}

.page-title {
    margin-top: 0.9rem;
    font-size: clamp(3rem, 8vw, 6.4rem);
}

.hero-subline,
.contact-copy,
.archive-description,
.editorial-body p {
    color: var(--text-dim);
    line-height: 1.85;
    font-size: 1rem;
}

.hero-subline {
    max-width: 42rem;
    margin: 1.5rem 0 0;
    font-size: 1.06rem;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button-primary,
.button-secondary,
.text-cta,
.btn-submit,
.card-link,
.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0 1.25rem;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.button-primary,
.btn-submit {
    background: var(--accent);
    color: var(--black);
    border-color: var(--accent);
}

.button-secondary,
.text-cta,
.card-link,
.download-link {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.02);
}

.button-primary:hover,
.button-secondary:hover,
.text-cta:hover,
.btn-submit:hover,
.card-link:hover,
.download-link:hover {
    transform: translateY(-1px);
}

.hero-discipline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.hero-discipline-list span,
.service-chip {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    padding: 0.7rem 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-discipline-list span {
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-portrait {
    position: relative;
    justify-self: end;
    width: min(100%, 500px);
}

.hero-portrait::before {
    content: '';
    position: absolute;
    inset: -16px 32px 32px -24px;
    border: 1px solid rgba(57, 201, 124, 0.16);
    background: linear-gradient(180deg, rgba(57, 201, 124, 0.08), rgba(57, 201, 124, 0.01));
    pointer-events: none;
    z-index: -1;
}

.hero-portrait-image,
.hero-portrait-fallback {
    width: 100%;
    aspect-ratio: 0.72;
    object-fit: cover;
    object-position: 50% 12%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        #050505;
    filter: brightness(0.96) contrast(1.04);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

[data-home-reveal] {
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-order, 0) * 90ms);
}

[data-home-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.home-hero-signal {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 112px;
    margin: 1.7rem 0 0;
    overflow: hidden;
    border-top: 1px solid rgba(57, 201, 124, 0.16);
    background:
        radial-gradient(circle at 72% 50%, rgba(57, 201, 124, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.005)),
        transparent;
}

.home-hero-signal::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(57, 201, 124, 0.028) 0, rgba(57, 201, 124, 0.028) 1px, transparent 1px, transparent 74px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 56px);
    opacity: 0.55;
    pointer-events: none;
}

#home-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.divider-bar,
.content-divider {
    height: 2px;
    max-width: var(--content-max);
    margin: 0 auto;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
}

.card-grid-section,
.archive-shell,
.content-shell,
.detail-grid-section {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 4rem var(--page-pad-x);
}

.related-posts-section .section-kicker {
    margin-bottom: 1.35rem;
}

.card-grid,
.archive-grid,
.detail-grid,
.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.focus-card,
.detail-card,
.post-card {
    min-width: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(57, 201, 124, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(9, 9, 9, 0.96);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.focus-card::before,
.detail-card::before,
.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(57, 201, 124, 0.85), rgba(57, 201, 124, 0.08), transparent 72%);
    pointer-events: none;
}

.focus-card:hover,
.detail-card:hover,
.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 201, 124, 0.28);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.3);
}

.focus-card h2,
.detail-card h3,
.post-card h2,
.post-card h3 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0.04em;
}

.focus-card h2 {
    font-size: 2.2rem;
    text-wrap: balance;
}

.detail-card h3,
.post-card h2,
.post-card h3 {
    font-size: 1.8rem;
}

.focus-card p,
.detail-card p,
.post-card p {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 0.92rem;
}

.focus-card p,
.detail-card p {
    flex: 1 1 auto;
    text-wrap: pretty;
    max-width: 30ch;
}

.focus-card .card-link,
.detail-card .card-link,
.detail-card .post-card-link {
    margin-top: auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    letter-spacing: 0.18em;
}

.focus-card .card-link > span:first-child,
.detail-card .card-link > span:first-child,
.detail-card .post-card-link > span:first-child {
    min-width: 0;
    white-space: normal;
    line-height: 1.25;
}


.editorial-section {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 4rem var(--page-pad-x);
}

.editorial-grid,
.contact-wrap,
.imprint-content {
    display: grid;
    grid-template-columns: minmax(220px, var(--inner-aside-w)) minmax(0, 1fr);
    gap: var(--inner-grid-gap);
    align-items: start;
}

.editorial-aside,
.contact-info,
.imprint-heading {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.editorial-aside h2,
.contact-info h2,
.imprint-heading h2 {
    margin-top: 1rem;
    font-size: 2.9rem;
}

.editorial-body,
.entry-prose,
.imprint-blocks {
    width: 100%;
    max-width: var(--inner-content-max);
    min-width: 0;
}

.service-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.post-card {
    padding: 0;
    overflow: hidden;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
}

.post-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f1110;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.post-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.12)),
        radial-gradient(circle at top right, rgba(57, 201, 124, 0.08), transparent 26%);
    pointer-events: none;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    filter: grayscale(1) brightness(1.16) contrast(1.08);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.03);
    filter: grayscale(1) brightness(1.22) contrast(1.1);
}

.post-card-body {
    padding: 1.1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
    min-height: 0;
    flex: 1 1 auto;
    align-content: start;
}

.post-card-meta,
.single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: var(--text-faint);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.meta-sep {
    color: rgba(255, 255, 255, 0.18);
}

.post-card-category {
    line-height: 1.2;
    margin-top: 0.1rem;
}

/* Category pill: matches Forensic / journal cards (e.g. NEWS under date) */
.post-card-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.post-card-category-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.32);
}

/*
 * ⚠ CHIP SCHUTZREGEL — BACKUP-SCHICHT
 * Diese Regeln sind redundant zur INLINE Critical CSS in
 * `functions.php` (Funktion: rauscher_custom_enqueue_assets).
 * Inline-CSS ist die AUTHORITATIVE Quelle (mit !important),
 * da sie unabhängig vom Bunny-CDN-Cache und Browser-Cache greift.
 * Diese Datei ist nur Backup, falls das Inline-CSS deaktiviert würde.
 * Beide Schichten beim Anpassen synchron halten.
 */
.single-meta a.single-category-link,
a.single-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.single-meta a.single-category-link:hover,
a.single-category-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.32);
    text-decoration: none;
}

.post-card-footer {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.post-card-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
}

.post-card-title {
    min-height: 0;
}

.post-card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.post-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
    flex: 1 1 auto;
}

.post-card-translation {
    min-height: 0;
    display: flex;
    align-items: flex-end;
    flex: 1 1 auto;
}

/* Bilingual note sits on its own row when present; CTA is always a full-width editorial strip (matches focus-card .card-link). */
.post-card-footer .post-card-translation:not(:empty) {
    flex: 1 1 100%;
    align-items: flex-start;
}

.post-card .post-card-link {
    flex: 1 1 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    padding: 0.7rem 1rem;
    min-height: unset;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.post-card .post-card-link:hover {
    color: var(--accent);
    border-color: rgba(57, 201, 124, 0.45);
    background: rgba(57, 201, 124, 0.07);
    transform: none;
}

.post-card .post-card-link > span:first-child {
    min-width: 0;
    white-space: normal;
    line-height: 1.25;
    text-align: left;
}

.focus-card .card-link-icon,
.detail-card .card-link-icon,
.detail-card .post-card-link .card-link-icon,
.post-card .post-card-link .card-link-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.post-card .post-card-link .card-link-icon svg,
.post-card .post-card-link svg.lucide {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
}

.translation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.translation-link .translation-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex: 0 0 auto;
}

.translation-link .translation-link-icon svg,
.translation-link svg {
    width: 0.82rem;
    height: 0.82rem;
    stroke-width: 1.9;
}

.translation-link:hover {
    color: var(--white);
}

.single-language-row {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.language-row-label {
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.single-keywords-row {
    width: min(100%, var(--article-column-max));
    margin-top: 0;
    display: grid;
    gap: 0.85rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.single-keywords-label {
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.keyword-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: flex-start;
}

.keyword-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(57, 201, 124, 0.26);
    border-radius: 999px;
    background:
        radial-gradient(circle at top right, rgba(57, 201, 124, 0.18), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-bottom: 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    /* No transform on hover — Safari GPU compositing causes sibling text to vanish when a
       sibling element is promoted to its own layer mid-render. translateZ(0) here forces all
       chips into their own layer upfront so no re-compositing ever happens. */
    transform: translateZ(0);
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: normal;
}

.keyword-chip:hover {
    border-color: rgba(57, 201, 124, 0.58);
    color: var(--white);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 14px rgba(57, 201, 124, 0.18);
    background:
        radial-gradient(circle at top right, rgba(57, 201, 124, 0.28), transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.024));
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.language-pill {
    min-width: 52px;
    min-height: 34px;
    padding: 0 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.language-pill.is-active {
    border-color: rgba(57, 201, 124, 0.45);
    background: rgba(57, 201, 124, 0.12);
    color: var(--white);
}

.language-pill:not(.is-active):hover {
    border-color: rgba(57, 201, 124, 0.32);
    color: var(--white);
}

.article-shell {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--page-pad-x) 4rem;
}

.article-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.lead-media {
    width: min(100%, var(--article-column-max));
    margin: 0;
}

.lead-media img {
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    filter: grayscale(1) brightness(0.94) contrast(1.04);
}

.entry-prose {
    color: var(--text-dim);
    line-height: 1.95;
    font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.16rem);
    font-family: var(--font-body);
}

.entry-prose > *:first-child {
    margin-top: 0;
}

.entry-prose p,
.entry-prose ul,
.entry-prose ol,
.entry-prose table,
.entry-prose blockquote,
.entry-prose figure {
    margin: 0 0 1.2rem;
}

.entry-prose p,
.entry-prose li,
.entry-prose td,
.entry-prose blockquote,
.entry-prose figcaption,
.entry-prose .wp-caption-text {
    font-family: var(--font-body);
    font-size: inherit;
}

.entry-prose h2,
.entry-prose h3,
.entry-prose h4,
.avia-lite-heading {
    margin: 2rem 0 1rem;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0.05em;
    color: var(--white);
}

.entry-prose h2,
.avia-lite-heading {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.entry-prose h3 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.entry-prose strong {
    color: rgba(255, 255, 255, 0.94);
}

.entry-prose a,
.imprint-block a,
.detail-card a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-bottom: 0;
    transition: color 0.2s, opacity 0.2s;
}

.entry-prose a:hover,
.imprint-block a:hover,
.detail-card a:hover {
    color: var(--accent);
    opacity: 1;
}

.entry-prose ul,
.entry-prose ol {
    padding-left: 1.2rem;
}

.entry-prose li {
    margin-bottom: 0.55rem;
}

.article-prose {
    width: min(100%, var(--article-column-max));
    max-width: var(--article-column-max);
}

.article-endcap {
    width: min(100%, var(--article-column-max));
}

.article-prose > .entry-prose {
    max-width: none;
}

.entry-prose img,
.entry-prose .wp-caption,
.entry-prose .wp-caption img,
.entry-prose .alignleft,
.entry-prose .alignright,
.entry-prose .aligncenter,
.entry-prose figure {
    float: none !important;
    clear: both;
    display: block;
    max-width: min(100%, var(--article-column-max));
    margin-left: auto !important;
    margin-right: auto !important;
}

.entry-prose img,
.entry-prose figure img,
.entry-prose .wp-caption img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-prose .wp-caption,
.entry-prose figure {
    width: min(100%, var(--article-column-max)) !important;
}

.entry-prose > .wp-caption,
.entry-prose > figure {
    width: min(100%, var(--article-inline-media-width)) !important;
    max-width: min(100%, var(--article-inline-media-width));
    float: right !important;
    clear: right;
    margin: 0 0 1.35rem 1.6rem !important;
}

.entry-prose > .wp-caption.is-wide,
.entry-prose > figure.is-wide {
    width: min(100%, 760px) !important;
    max-width: min(100%, 760px);
    float: none !important;
    clear: both;
    margin: 1.25rem auto !important;
}

.entry-prose > .wp-caption:has(img[src$=".svg"]),
.entry-prose > figure:has(img[src$=".svg"]),
.entry-prose > .wp-caption:has(img[src*="badge/DOI"]),
.entry-prose > figure:has(img[src*="badge/DOI"]) {
    width: auto !important;
    max-width: min(100%, 440px);
    float: none !important;
    clear: both;
    margin: 1.25rem auto !important;
}

.entry-prose figcaption,
.entry-prose .wp-caption-text {
    margin-top: 0.7rem;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-faint);
    text-align: left;
}

.entry-prose iframe,
.entry-prose video {
    width: min(100%, var(--article-column-max));
    margin: 0 auto 1.4rem;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16 / 9;
}

.entry-prose table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.entry-prose pre,
.entry-prose .wp-block-code {
    overflow-x: auto;
    word-break: break-word;
    max-width: 100%;
}

.entry-prose th,
.entry-prose td {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.entry-prose th {
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
}

.avia-lite-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.avia-lite-gallery-item {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.avia-lite-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.avia-lite-icon-box {
    border-left: 2px solid var(--accent);
    padding: 0.9rem 0 0.9rem 1rem;
    margin: 1.25rem 0;
}

.avia-lite-icon-box h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.avia-lite-image-wrap {
    margin: 1rem 0 1.4rem;
}

.single-entry {
    padding-bottom: 3rem;
    /* Contain all child stacking contexts (transformed post-cards, chips) so they
       can never paint over sibling elements outside the article (footer-rule etc.). */
    isolation: isolate;
}

.archive-description {
    max-width: 42rem;
    margin-top: 1rem;
}

/* Blog pagination wrapper
 * Hinweis: zugehörige Critical-Regeln stehen authoritativ als Inline-CSS
 * in functions.php (rauscher_custom_enqueue_assets). Diese Backup-Schicht
 * dient als Fallback und für Editor-Lesbarkeit der Stilstruktur.
 */
.blog-pagination {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-light);
}

.blog-pagination ul.page-numbers {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Dots: plain separator, no box */
.page-numbers.dots {
    min-width: unset;
    min-height: unset;
    padding: 0 0.4rem;
    border: none;
    background: none;
    color: var(--text-faint);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    pointer-events: none;
}

/* Journal pagination: numbers as light text; avoid boxed “segment” chrome */
.page-numbers {
    min-width: auto;
    min-height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: var(--font-body);
    text-decoration: none;
    color: var(--text-faint);
    background: transparent;
    border: none;
    border-radius: 0;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.page-numbers.current {
    color: var(--accent);
    border: none;
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--accent);
    cursor: default;
}

a.page-numbers:hover {
    color: var(--white);
    border: none;
    background: rgba(255, 255, 255, 0.05);
}

.prev.page-numbers,
.next.page-numbers {
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
}

.prev.page-numbers::before {
    content: '←';
    font-size: 0.85rem;
    line-height: 1;
}

.next.page-numbers::after {
    content: '→';
    font-size: 0.85rem;
    line-height: 1;
}

.prev.page-numbers:hover,
.next.page-numbers:hover {
    color: var(--accent);
    border-color: rgba(57, 201, 124, 0.45);
    background: rgba(57, 201, 124, 0.06);
}

.contact-wrap,
.imprint-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 5rem var(--page-pad-x);
}

.contact-wrap > *,
.imprint-content > * {
    min-width: 0;
}

.contact-form {
    width: 100%;
    max-width: var(--inner-content-max);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field-label {
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.required-mark {
    color: var(--accent);
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    border: 1px solid var(--gray-light);
    background: var(--gray-mid);
    color: var(--white);
    font: inherit;
    font-size: 0.92rem;
    padding: 0.9rem 1rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.field-select,
.consent-checkbox {
    appearance: none;
    -webkit-appearance: none;
}

.field-textarea {
    min-height: 180px;
    resize: vertical;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    border-color: var(--accent);
    background: #0f0f0f;
}

.field-input.field-error,
.field-select.field-error,
.field-textarea.field-error {
    border-color: #ff6f79;
}

.field-input.field-ok,
.field-select.field-ok,
.field-textarea.field-ok {
    border-color: rgba(57, 201, 124, 0.54);
}

.field-hint,
.consent-hint,
.char-counter,
.form-status {
    font-size: 0.72rem;
    color: var(--text-faint);
    min-height: 1em;
}

.field-hint.error,
.consent-hint.error,
.form-status.error {
    color: #ff7e88;
}

.field-hint.ok,
.form-status.success {
    color: rgba(57, 201, 124, 0.85);
}

.char-counter {
    text-align: right;
}

.honeypot {
    display: none;
}

.consent-wrap {
    position: relative;
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid rgba(57, 201, 124, 0.18);
    background:
        radial-gradient(circle at top right, rgba(57, 201, 124, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.consent-wrap::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), transparent 70%);
}

.consent-wrap.error {
    border-color: rgba(255, 126, 136, 0.6);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    cursor: pointer;
}

.consent-checkbox {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin-top: 0.16rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    display: inline-grid;
    place-items: center;
}

.consent-checkbox::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg) scale(0.72);
    opacity: 0;
}

.consent-checkbox:checked {
    border-color: rgba(57, 201, 124, 0.75);
    background: rgba(57, 201, 124, 0.12);
}

.consent-checkbox:checked::after {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

.consent-copy {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.82rem;
}

.form-submit-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.detail-grid-section {
    padding-top: 3rem;
}

.download-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.imprint-block {
    margin-bottom: 2rem;
}

.red-label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}

.imprint-block .red-label.icon-label {
    display: inline-flex;
}

.imprint-block p,
.imprint-block address {
    margin: 0 0 0.9rem;
    color: var(--text-dim);
    line-height: 1.8;
    font-style: normal;
}

.footer-rule {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 1px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--gray-light);
}

.site-footer {
    padding: 1.75rem max(var(--page-pad-x), calc((100vw - var(--content-max)) / 2 + var(--page-pad-x)));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--text-faint);
    font-size: 0.7rem;
}

.footer-links {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-faint);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.16);
}

body.nav-open {
    overflow: hidden;
}

@media (max-width: 1120px) {
    .main-nav {
        gap: 1.5rem;
    }

    .editorial-grid,
    .contact-wrap,
    .imprint-content {
        gap: var(--inner-grid-gap-tight);
    }

    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    :root {
        --article-inline-media-width: 280px;
    }

    .header-inner {
        padding: 0 var(--page-pad-mobile);
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--admin-bar-offset);
        left: 0;
        width: 100vw;
        height: calc(100dvh - var(--admin-bar-offset));
        background: #000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.75rem;
        padding: calc(var(--header-h) + 2rem) 1.5rem 3rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 95;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1rem;
        letter-spacing: 0.3em;
    }

    #nav-backdrop {
        position: fixed;
        inset: 0;
        top: calc(var(--header-h) + var(--admin-bar-offset));
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        z-index: 89;
    }

    #nav-backdrop.visible {
        display: block;
    }

    .hero-grid,
    .editorial-grid,
    .contact-wrap,
    .imprint-content {
        grid-template-columns: 1fr;
    }

    .hero-portrait {
        justify-self: start;
        width: min(100%, 420px);
    }

    .hero-portrait::before {
        inset: -12px 20px 20px -12px;
    }

    .home-hero-signal {
        width: min(100%, 420px);
    }

    .editorial-aside,
    .contact-info,
    .imprint-heading {
        position: static;
    }

    .card-grid,
    .detail-grid,
    .service-strip,
    .avia-lite-gallery,
    .form-row {
        grid-template-columns: 1fr;
    }

    .archive-grid,
    .latest-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-shell {
        padding-left: var(--page-pad-mobile);
        padding-right: var(--page-pad-mobile);
    }
}

@media (max-width: 768px) {
    .editorial-section,
    .card-grid-section,
    .archive-shell,
    .content-shell,
    .detail-grid-section,
    .contact-wrap,
    .imprint-content {
        padding-left: var(--page-pad-mobile);
        padding-right: var(--page-pad-mobile);
    }

    .hero-home {
        padding-left: 0;
        padding-right: 0;
    }

    .page-hero,
    .article-shell {
        padding-left: clamp(0.9rem, 4vw, 1rem);
        padding-right: clamp(0.9rem, 4vw, 1rem);
    }

    .hero-home {
        padding-top: calc(var(--header-h) + 3rem);
    }

    .page-hero {
        padding-top: calc(var(--header-h) + var(--admin-bar-offset) + 3rem);
    }

    .hero-title {
        font-size: clamp(3.3rem, 18vw, 5.6rem);
    }

    .hero-subline {
        font-size: 1rem;
    }

    .hero-copy {
        padding-left: var(--page-pad-mobile);
        padding-right: var(--page-pad-mobile);
    }

    .hero-portrait {
        width: 100%;
        justify-self: stretch;
    }

    .hero-portrait::before {
        display: none;
    }

    .hero-portrait-image,
    .hero-portrait-fallback {
        width: 100%;
        max-width: 100%;
        aspect-ratio: auto;
    }

    .home-hero-signal {
        width: 100%;
        height: 104px;
        margin-top: 1.35rem;
    }

    .page-title {
        font-size: clamp(2.7rem, 16vw, 4.8rem);
    }

    .editorial-aside h2,
    .contact-info h2,
    .imprint-heading h2 {
        font-size: 2.3rem;
    }

    .archive-grid,
    .latest-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card-excerpt {
        min-height: 0;
        -webkit-line-clamp: 5;
    }

    .article-prose {
        width: 100%;
        max-width: 100%;
    }

    .article-layout,
    .lead-media,
    .article-endcap,
    .single-keywords-row {
        width: 100%;
        max-width: 100%;
    }

    .site-footer {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 782px) {
    body.admin-bar {
        --admin-bar-offset: 46px;
    }
}

@media (max-width: 640px) {
    [data-home-reveal] {
        transition-delay: calc(var(--reveal-order, 0) * 55ms);
    }

    .home-hero-signal {
        height: 92px;
    }

    .entry-prose > .wp-caption,
    .entry-prose > figure {
        width: 100% !important;
        max-width: 100%;
        float: none !important;
        clear: both;
        margin: 0 0 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }
    .page-title {
        font-size: clamp(1.9rem, 9vw, 3rem);
    }
}
