/* ═══════════════════════════════════════════
   hej impact – Main Stylesheet v2
   Fresh · Bold · Cosmic · Impact
   Pantone: 4146C, 1805C, 668C, 4124C, 2456C, 2455C
   ═══════════════════════════════════════════ */

/* ── Custom Properties ─────────────────── */
:root {
    --hej-red: #AF231C;
    --hej-red-dark: #8C1B1E;
    --hej-plum: #462639;
    --hej-mauve: #5C3A4D;
    --hej-purple: #614B79;
    --hej-indigo: #3A1F5C;
    --hej-violet: #512D6D;
    --hej-gray: #BBBCBC;
    --hej-cosmic: #0F0A1A;
    --hej-cosmic-mid: #1A1128;
    --hej-surface: #F9F8F6;
    --hej-surface-alt: #F0EDE8;
    --hej-text: #1A1128;
    --hej-text-soft: #6B6275;
    --hej-text-light: #9890A3;
    --hej-border: #E4E0DA;
    --hej-white: #fff;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --radius-pill: 100px;
    --radius-blob: 30% 70% 70% 30% / 30% 30% 70% 70%;
    --radius-blob-2: 60% 40% 30% 70% / 50% 60% 40% 50%;
    --radius-blob-3: 40% 60% 60% 40% / 70% 30% 70% 30%;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.25s var(--ease);

    --gradient-cosmic: linear-gradient(135deg, var(--hej-cosmic) 0%, var(--hej-indigo) 50%, var(--hej-plum) 100%);
    --gradient-brand: linear-gradient(135deg, var(--hej-red) 0%, var(--hej-violet) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--hej-violet) 0%, var(--hej-purple) 50%, var(--hej-mauve) 100%);
}

/* ── Reset & Base ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hej-text);
    background: var(--hej-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--hej-red);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover, a:focus-visible {
    color: var(--hej-violet);
}

::selection {
    background: var(--hej-violet);
    color: var(--hej-white);
}

/* ── Typography ────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--hej-text);
    margin-top: 0;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-top: 0; margin-bottom: 1rem; }

/* Accent text */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Label / eyebrow */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hej-red);
    margin-bottom: 0.75rem;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--hej-red);
    border-radius: 2px;
}

/* ── Layout ────────────────────────────── */
.content-area { padding: 4rem 0; }

/* Auf der Homepage wickelt .content-area (page.php-Standardklasse) reine
   hp-*-Module, die alle schon ihr eigenes vertikales padding mitbringen
   (.hp-section, .hp-highlight, .hp-facts, .hp-dark-section, .hp-mission …).
   Das zusätzliche padding:4rem 0 des Wrappers duplizierte diesen Abstand an
   jeder Content-Area-Grenze - am auffälligsten als weißer Streifen zwischen
   dem (alignfull) Wiki-Teaser und dem Footer, da dessen padding-bottom
   hinter dem dunklen Hintergrund noch sichtbares Leerzeichen erzeugte. */
.content-area.homepage {
    padding: 0;
}

.content-area__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-area--narrow { max-width: 740px; }

/* ═══════════════════════════════════════════
   MODUL-BAUKASTEN: Layout-Fix (generisch)
   Ersetzt die früheren Template-gebundenen
   Overrides (Kontakt/Vaterwelten/hejDAD) durch
   eine einzige Regel, die auf jeder Seite mit
   der .hej-modules-Klasse greift (siehe page.php).
   ═══════════════════════════════════════════ */

/* theme.json erzwingt is-layout-constrained/-flow (contentSize: 740px)
   auf jeden Block. Für freie Modul-Sektionen heben wir das auf.
   Bewusst ohne !important und mit :where() auf Spezifität 0 gehalten
   (wie WP-Core-Defaults selbst): eigene Breiten-Klassen der Module
   (z. B. *__inner mit eigenem max-width) sollen das weiterhin
   überschreiben können, statt von dieser Regel überstimmt zu werden. */
.hej-modules :where(.is-layout-constrained) > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.hej-modules :where(.is-layout-flow) > :where(*) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* alignfull: Sektionen bis zum Viewport-Rand ausbrechen lassen,
   auch wenn sie innerhalb von .content-area__inner (max-width 1200px) sitzen. */
.hej-modules .alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* "Hero-Bereich (einfarbig)"-Pattern: eigener Innen-Container, damit der
   Inhalt trotz der Layout-Fix-Regel oben zentriert und lesbar bleibt. */
.hero-section__inner {
    max-width: 740px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ── Buttons ───────────────────────────── */
.btn,
.wp-block-button__link,
.wp-element-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--hej-red);
    color: var(--hej-white);
}

.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--hej-violet);
    color: var(--hej-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(81, 45, 109, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--hej-white);
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: var(--hej-white);
}

/* ── Blob Shapes (for images) ──────────── */
.shape-blob { border-radius: var(--radius-blob); overflow: hidden; }
.shape-blob-2 { border-radius: var(--radius-blob-2); overflow: hidden; }
.shape-blob-3 { border-radius: var(--radius-blob-3); overflow: hidden; }
.shape-soft { border-radius: var(--radius-lg); overflow: hidden; }
.shape-pill { border-radius: var(--radius-pill); overflow: hidden; }

/* Blob image containers */
.blob-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-blob);
    transition: border-radius 0.6s var(--ease);
}

.blob-image:hover {
    border-radius: var(--radius-blob-2);
}

.blob-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.blob-image:hover img {
    transform: scale(1.03);
}

/* ── Site Header ───────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(249, 248, 246, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hej-border);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-header__logo a,
.site-header__logo .site-logo-text {
    display: flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--hej-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-header__logo img,
.site-header__logo svg,
.custom-logo {
    height: 38px;
    width: auto;
}

/* Nav Toggle */
.site-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--hej-text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.site-header__toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header__toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */
.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav__list a {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--hej-text-soft);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
    color: var(--hej-text);
    background: rgba(81, 45, 109, 0.06);
    text-decoration: none;
}

/* ── Nav CTA Button ─────────────────────── */
.site-nav__list .nav-cta > a {
    background: var(--hej-red);
    color: #fff !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    margin-left: 0.5rem;
}

.site-nav__list .nav-cta > a:hover,
.site-nav__list .nav-cta > a:focus-visible {
    background: #8B1C16;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(175, 35, 28, 0.3);
    transform: translateY(-1px);
}

.site-nav__list .nav-cta.current-menu-item > a {
    background: var(--hej-red);
    color: #fff !important;
}

.site-nav__list .current-menu-item > a {
    color: var(--hej-red);
    background: rgba(175, 35, 28, 0.06);
}

/* Submenu */
.site-nav__list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--hej-white);
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: 0 12px 32px rgba(15,10,26,0.12);
    list-style: none;
    z-index: 50;
}

.site-nav__list li { position: relative; }
.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu { display: block; }

.site-nav__list .sub-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* ── Site Footer ───────────────────────── */
.site-footer {
    background: var(--hej-cosmic);
    color: rgba(255,255,255,0.55);
    padding: 4rem 0 2rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative orb in footer */
.site-footer::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(81,45,109,0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.site-footer__logo .custom-logo,
.site-footer__logo img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-footer__name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--hej-white);
}

.site-footer__tagline {
    font-size: 0.875rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.site-footer__heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1rem;
}

.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li + li { margin-top: 0.5rem; }

.site-footer__links a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
}

.site-footer__links a:hover { color: var(--hej-white); }

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__copy { font-size: 0.8125rem; margin: 0; }
.site-footer__legal { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; }
.site-footer__legal a { font-size: 0.8125rem; color: rgba(255,255,255,0.4); }
.site-footer__legal a:hover { color: var(--hej-white); }
.site-footer__text { font-size: 0.875rem; line-height: 1.5; }


/* ── Footer: Messe-Hinweis (Zukunft Personal Europe) ──── */
.footer-messe {
    /* ZP-Europe-Farbwelt: kühles Navy/Indigo mit magenta-violettem Glow */
    --zp-navy: #14132E;
    --zp-indigo: #241C57;
    --zp-purple: #5B3FA0;
    --zp-violet: #825DCE;
    --zp-magenta: #C77ED6;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 3.5rem;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background:
        radial-gradient(130% 150% at 92% -25%, rgba(220,170,221,0.50) 0%, rgba(152,107,236,0.38) 26%, rgba(130,93,206,0.10) 48%, transparent 62%),
        linear-gradient(112deg, var(--zp-navy) 0%, var(--zp-indigo) 44%, var(--zp-purple) 100%);
    border: 1px solid rgba(152,107,236,0.28);
    box-shadow: 0 18px 50px -20px rgba(36,28,87,0.85);
}

/* dezentes ×-Muster als Hintergrund-Textur (Anlehnung an ZP-Bildsprache) */
.footer-messe::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130' viewBox='0 0 130 130'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='5' stroke-linecap='round' opacity='0.055'%3E%3Cpath d='M45 45 L85 85 M85 45 L45 85'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 130px 130px;
    pointer-events: none;
}

.footer-messe__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.footer-messe__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
}

.footer-messe__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--zp-magenta);
    box-shadow: 0 0 0 0 rgba(199,126,214,0.6);
    animation: footerMessePulse 2.2s var(--ease) infinite;
}

@keyframes footerMessePulse {
    0%   { box-shadow: 0 0 0 0 rgba(199,126,214,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(199,126,214,0); }
    100% { box-shadow: 0 0 0 0 rgba(199,126,214,0); }
}

.footer-messe__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--hej-white);
    margin: 0 0 0.85rem;
}

.footer-messe__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.1rem;
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.82);
}

.footer-messe__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-messe__meta svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: rgba(255,255,255,0.6);
}

/* Datum als umrandete Box – ZP-Toolkit-Stil */
.footer-messe__date {
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.85rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--hej-white);
    letter-spacing: 0.01em;
}

.footer-messe__cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    background: var(--hej-white);
    color: var(--hej-cosmic);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    padding: 0.95rem 1.6rem;
    border-radius: var(--radius-pill);
    transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
    box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5);
}

.footer-messe__cta svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
}

.footer-messe__cta:hover,
.footer-messe__cta:focus-visible {
    transform: translateY(-2px);
    color: var(--zp-purple);
    box-shadow: 0 16px 32px -12px rgba(36,28,87,0.6);
}

.footer-messe__cta:hover svg,
.footer-messe__cta:focus-visible svg { transform: translateX(4px); }

@media (max-width: 680px) {
    .footer-messe {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem 1.5rem;
    }
    .footer-messe__cta { width: 100%; justify-content: center; }
}


/* ── Homepage: Hero (maenner.ch style) ──── */
.hp-hero {
    padding: 3rem 0 2rem;
}

.hp-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
}

.hp-hero__blob {
    width: 260px;
    height: 260px;
    border-radius: var(--radius-blob);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(175,35,28,0.08), rgba(81,45,109,0.08));
}

.hp-hero__blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-hero__blob-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-subtle);
}

.hp-hero__intro {
    font-size: 1.0625rem;
    color: var(--hej-text-soft);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 520px;
}

.hp-hero__statement {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: 600px;
}

.hp-gutenberg__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── HP Sections ───────────────────────── */
.hp-section { padding: 4rem 0; }
.hp-section--flush { padding: 2rem 0; }

.hp-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hp-section__title { margin-bottom: 1.5rem; }

.hp-section__header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

/* ── Standpunkte / Leistungen – 2-Col Card Grid ── */
.hp-standpunkte-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.hp-standpunkte-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-lg);
    background: var(--hej-white);
    text-decoration: none;
    color: var(--hej-text);
    transition: all var(--transition);
}

.hp-standpunkte-card:hover {
    box-shadow: 0 4px 16px rgba(15,10,26,0.08);
    transform: translateY(-2px);
    border-color: var(--hej-violet);
    color: var(--hej-text);
    text-decoration: none;
}

.hp-standpunkte-card__content strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.hp-standpunkte-card__content p {
    font-size: 0.9375rem;
    color: var(--hej-text-soft);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.hp-standpunkte-card__link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hej-red);
    transition: gap var(--transition);
}

.hp-standpunkte-card:hover .hp-standpunkte-card__link {
    color: var(--hej-violet);
}

/* Legacy standpunkte (falls alte Markup noch verwendet wird) */
.hp-standpunkte {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    max-width: 700px;
}

.hp-standpunkte__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--hej-border);
}

.hp-standpunkte__item:first-child {
    border-top: 1px solid var(--hej-border);
}

.hp-standpunkte__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hej-red);
    color: var(--hej-white);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.1rem;
}

.hp-standpunkte__item strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.hp-standpunkte__item p {
    font-size: 0.9375rem;
    color: var(--hej-text-soft);
    margin: 0;
    line-height: 1.5;
}

/* ── 3-col Blob Links ──────────────────── */
.hp-blobs-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.hp-blob-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--hej-text);
    transition: transform var(--transition);
}

.hp-blob-link:hover {
    transform: translateY(-4px);
    text-decoration: none;
    color: var(--hej-text);
}

.hp-blob-link__image {
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(175,35,28,0.06), rgba(81,45,109,0.06));
    transition: border-radius 0.6s var(--ease);
}

.hp-blob-link:hover .hp-blob-link__image {
    border-radius: var(--radius-blob-2);
}

.hp-blob-link__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-blob-link__label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

.hp-blob-link__sub {
    font-size: 0.8125rem;
    color: var(--hej-text-soft);
    display: block;
    margin-top: 0.125rem;
}

/* ── Highlight Box ─────────────────────── */
.hp-highlight {
    background: var(--hej-surface-alt);
    padding: 4rem 0;
}

.hp-highlight__inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.hp-highlight__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    border-radius: 50%;
    background: var(--hej-white);
    box-shadow: 0 2px 12px rgba(15,10,26,0.06);
    margin-bottom: 1.5rem;
}

.hp-highlight__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.hp-highlight__text {
    font-size: 1.0625rem;
    color: var(--hej-text-soft);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* Gutenberg-Buttons-Block ist ein Flex-Container (display:flex) - das
   text-align:center von .hp-highlight__inner zentriert nur Inline-Inhalte,
   nicht den Block-Flex-Container selbst. Ohne justify-content bleibt der
   Button daher links im 700px-Container statt unter der zentrierten
   Überschrift zu stehen. */
.hp-highlight .wp-block-buttons {
    justify-content: center;
}

/* ── 3-col Cards (Blog) ───────────────── */
.hp-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.hp-card {
    background: var(--hej-white);
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.hp-card:hover {
    box-shadow: 0 8px 24px rgba(15,10,26,0.1);
    transform: translateY(-2px);
}

.hp-card__image { display: block; overflow: hidden; }

.hp-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.hp-card:hover .hp-card__image img { transform: scale(1.04); }
.hp-card__body { padding: 1.25rem; }

.hp-card__date {
    display: block;
    font-size: 0.75rem;
    color: var(--hej-text-light);
    margin-bottom: 0.375rem;
}

.hp-card__title { font-size: 1rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.hp-card__title a { color: var(--hej-text); }
.hp-card__title a:hover { color: var(--hej-violet); text-decoration: none; }

.hp-card__excerpt {
    font-size: 0.875rem;
    color: var(--hej-text-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ── Facts Grid ────────────────────────── */
.hp-facts { padding: 4rem 0; }

.hp-facts__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hp-facts__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
}

.hp-fact__number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--hej-text);
    margin-bottom: 0.5rem;
}

.hp-fact__label {
    font-size: 0.875rem;
    color: var(--hej-text-soft);
    line-height: 1.45;
    max-width: 280px;
    margin: 0;
}

/* ── Tag Cloud ─────────────────────────── */
.hp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hp-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4375rem 1rem;
    border: 1.5px solid var(--hej-border);
    border-radius: var(--radius-pill);
    color: var(--hej-text-soft);
    transition: all var(--transition);
    cursor: default;
}

.hp-tag:hover {
    border-color: var(--hej-violet);
    color: var(--hej-violet);
    background: rgba(81,45,109,0.04);
}

/* ── Portfolio Grid ────────────────────── */
.hp-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--hej-text);
    transition: transform var(--transition);
}

.portfolio-card:hover { transform: translateY(-4px); text-decoration: none; color: var(--hej-text); }

.portfolio-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 1rem;
    background: var(--hej-surface-alt);
}

.portfolio-card__image img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card__title { font-size: 1rem; margin: 0 0 0.25rem; }
.portfolio-card__cat { font-size: 0.8125rem; color: var(--hej-text-soft); }

/* ── Mission ───────────────────────────── */
.hp-mission { padding: 4rem 0; }

.hp-mission__inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.hp-mission__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }

.hp-mission__text {
    font-size: 1rem;
    color: var(--hej-text-soft);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.hp-mission__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap var(--transition);
}

.hp-mission__cta:hover { gap: 0.75rem; }

.hp-mission__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hej-red);
    color: var(--hej-white);
    font-size: 0.875rem;
}

/* ── Dark Section (Wiki / Newsletter) ──── */
.hp-dark-section {
    background: var(--gradient-cosmic);
    color: var(--hej-white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hp-dark-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(175,35,28,0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -150px;
    pointer-events: none;
}

.hp-dark-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.hp-dark-section__content { max-width: 600px; }

.hp-dark-section__title {
    color: var(--hej-white);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

.hp-dark-section__text {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ── Post Cards ────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--hej-white);
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.post-card:hover {
    box-shadow: 0 8px 24px rgba(15,10,26,0.1);
    transform: translateY(-2px);
}

.post-card__image {
    display: block;
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.post-card:hover .post-card__image img {
    transform: scale(1.04);
}

.post-card__body { padding: 1.5rem; }

.post-card__type {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hej-red);
    margin-bottom: 0.375rem;
}

.post-card__title { font-size: 1.125rem; margin-bottom: 0.5rem; letter-spacing: -0.015em; }
.post-card__title a { color: var(--hej-text); }
.post-card__title a:hover { color: var(--hej-violet); text-decoration: none; }

.post-card__date {
    display: block;
    font-size: 0.8125rem;
    color: var(--hej-text-light);
    margin-bottom: 0.5rem;
}

.post-card__excerpt { font-size: 0.9375rem; color: var(--hej-text-soft); }

/* ── Single Post ───────────────────────── */
.single-post__header { margin-bottom: 2.5rem; }

.single-post__date {
    display: block;
    font-size: 0.8125rem;
    color: var(--hej-text-light);
    margin-bottom: 0.75rem;
}

.single-post__lead {
    font-size: 1.1875rem;
    color: var(--hej-text-soft);
    line-height: 1.6;
    margin-top: 1.25rem;
}

.single-post__image { margin: 0 0 2.5rem; }
.single-post__image img { border-radius: var(--radius-lg); }

.single-post__body { font-size: 1.0625rem; line-height: 1.7; }

.single-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hej-border);
}

.post-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    background: var(--hej-surface-alt);
    border-radius: var(--radius-pill);
    color: var(--hej-text-soft);
    transition: all var(--transition);
}

.post-tag:hover {
    background: var(--hej-violet);
    color: var(--hej-white);
    text-decoration: none;
}

/* ── Post Navigation (Prev/Next) ──────── */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--hej-border);
}

.post-nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--hej-text);
    transition: all var(--transition);
    max-width: 48%;
}

.post-nav__link:hover {
    border-color: var(--hej-red);
    background: rgba(175, 35, 28, 0.04);
    text-decoration: none;
}

.post-nav__link:hover .post-nav__arrow {
    color: var(--hej-red);
}

.post-nav__link--prev { margin-right: auto; }
.post-nav__link--next { margin-left: auto; text-align: right; }

.post-nav__arrow {
    flex-shrink: 0;
    color: var(--hej-text-light);
    transition: color var(--transition);
}

.post-nav__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.post-nav__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hej-red);
}

.post-nav__title {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .post-nav { flex-direction: column; gap: 0.75rem; }
    .post-nav__link { max-width: 100%; }
    .post-nav__link--next { text-align: left; flex-direction: row-reverse; }
}

/* ── Page Templates ────────────────────── */
.page-content__header,
.page-team__header,
.page-kontakt__header,
.page-portfolio__header {
    margin-bottom: 3rem;
}

.page-team__lead,
.page-portfolio__lead {
    font-size: 1.125rem;
    color: var(--hej-text-soft);
    max-width: 580px;
}

/* ── Team Cards ───────────────────────── */
.hej-team-row {
    margin-bottom: 1rem;
}

.hej-team-card {
    padding-bottom: 1rem;
}

.hej-team-card__image {
    overflow: hidden;
    transition: border-radius 0.6s var(--ease);
}

.hej-team-card__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.hej-team-card:hover .hej-team-card__image img {
    transform: scale(1.03);
}

.hej-team-card:hover .hej-team-card__image {
    border-radius: var(--radius-blob-2);
}

.hej-team-card__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hej-team-card__role {
    font-size: 0.875rem;
    color: var(--hej-text-soft);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Contact Icons */
.hej-team-card__contact {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.hej-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(175, 35, 28, 0.08);
    color: var(--hej-red);
    font-size: 0;
    text-decoration: none;
    transition: all var(--transition);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}

.hej-contact-icon:hover {
    background: var(--hej-red);
    color: var(--hej-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(175, 35, 28, 0.25);
}

/* LinkedIn icon (inline SVG as background) */
.hej-contact-icon--linkedin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23AF231C'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
}

.hej-contact-icon--linkedin:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
}

/* Mail icon (inline SVG as background) */
.hej-contact-icon--mail {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AF231C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.hej-contact-icon--mail:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

/* Kontakt – legacy stubs removed in v1.5.0, see end of file */

/* ── Entry Content (Gutenberg) ─────────── */
.entry-content > *:first-child { margin-top: 0; }
.entry-content > * + * { margin-top: 1.5rem; }

.entry-content blockquote {
    border-left: 3px solid var(--hej-violet);
    padding-left: 1.5rem;
    margin-left: 0;
    font-size: 1.125rem;
    color: var(--hej-text);
    font-style: italic;
}

/* ── Breadcrumb ────────────────────────── */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.8125rem;
}

.breadcrumb__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.breadcrumb__item + .breadcrumb__item::before {
    content: '›';
    margin-right: 0.25rem;
    color: var(--hej-text-light);
}

.breadcrumb__item a { color: var(--hej-text-soft); }
.breadcrumb__item[aria-current="page"] { color: var(--hej-text); font-weight: 600; }

/* ── Pagination ────────────────────────── */
.pagination, .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 3rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-pill);
    color: var(--hej-text-soft);
    transition: all var(--transition);
}

.page-numbers.current {
    background: var(--hej-red);
    border-color: var(--hej-red);
    color: var(--hej-white);
}

.page-numbers:hover:not(.current) {
    background: var(--hej-surface-alt);
    border-color: var(--hej-surface-alt);
    color: var(--hej-text);
    text-decoration: none;
}

/* ── Error 404 ─────────────────────────── */
.error-404 { text-align: center; padding: 5rem 0; }
.error-404__title { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.error-404__text { font-size: 1.125rem; color: var(--hej-text-soft); margin-bottom: 2rem; }
.error-404__link { font-weight: 600; }

/* ── Block Styles ──────────────────────── */
.is-style-hej-card {
    background: var(--hej-white);
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.is-style-hej-highlight {
    background: linear-gradient(135deg, rgba(175,35,28,0.04), rgba(81,45,109,0.04));
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.is-style-hej-checklist li {
    list-style: none;
    position: relative;
    padding-left: 1.75rem;
}

.is-style-hej-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border: 2px solid var(--hej-violet);
    border-radius: 4px;
}

.is-style-hej-section-heading {
    position: relative;
    padding-bottom: 0.75rem;
}

.is-style-hej-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

/* ── Förder-Logoleiste ────────────────── */
.foerder-leiste {
    background: var(--hej-white);
    border-top: 1px solid var(--hej-border);
    padding: 2.5rem 1.5rem;
}

.foerder-leiste__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    text-align: center;
}

.foerder-leiste__label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hej-text-soft);
    margin-bottom: 1.25rem;
}

.foerder-leiste__logos {
    display: flex;
    justify-content: center;
    align-items: center;
}

.foerder-leiste__logos img {
    max-width: 100%;
    width: 800px;
    height: auto;
}

/* ── Responsive ────────────────────────── */
@media (max-width: 768px) {
    .site-header__toggle { display: block; }

    .site-nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--hej-white);
        z-index: 99;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .site-nav.is-open {
        display: block !important;
        position: fixed !important;
        top: 72px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: calc(100vh - 72px) !important;
        height: calc(100dvh - 72px) !important;
        background: var(--hej-white) !important;
        z-index: 9999 !important;
        padding: 1.5rem !important;
        overflow-y: auto !important;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav__list a {
        display: block;
        padding: 0.875rem 0.5rem;
        font-size: 1.0625rem;
        border-radius: 0;
        border-bottom: 1px solid var(--hej-border);
    }

    .site-nav__list .nav-cta > a {
        display: block;
        background: var(--hej-red);
        color: #fff !important;
        text-align: center;
        padding: 0.875rem 1.25rem;
        border-radius: var(--radius-pill);
        border-bottom: none;
        margin-top: 1rem;
        margin-left: 0;
    }

    .site-nav__list .sub-menu {
        position: static;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        border-radius: 0;
    }

    /* Homepage responsive */
    .hp-hero__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .hp-hero__image { display: flex; justify-content: center; }
    .hp-hero__blob { width: 180px; height: 180px; }
    .hp-hero__intro { max-width: 100%; }
    .hp-hero__statement { max-width: 100%; }

    .hp-blobs-row { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .hp-blob-link__image { width: 140px; height: 140px; }
    .hp-cards-row { grid-template-columns: 1fr; }
    .hp-standpunkte-grid { grid-template-columns: 1fr; }
    .hp-facts__grid { grid-template-columns: 1fr 1fr; }
    .hp-portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hp-blobs-row { grid-template-columns: 1fr; }
    .hp-blob-link__image { width: 160px; height: 160px; }
    .hp-facts__grid { grid-template-columns: 1fr; }
    .hp-portfolio-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   WORDPRESS OVERRIDE FIX
   Ensures homepage layout works regardless
   of WP default styles or theme.json output
   ═══════════════════════════════════════════ */

/* Force hero grid */
.homepage .hp-hero .hp-hero__inner,
.hej-modules .hp-hero .hp-hero__inner {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 3.5rem !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

.homepage .hp-hero .hp-hero__blob,
.hej-modules .hp-hero .hp-hero__blob {
    width: 260px !important;
    height: 260px !important;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% !important;
    overflow: hidden !important;
}

.homepage .hp-hero .hp-hero__blob img,
.hej-modules .hp-hero .hp-hero__blob img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.homepage .hp-hero .hp-hero__blob-placeholder,
.hej-modules .hp-hero .hp-hero__blob-placeholder {
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #512D6D 0%, #614B79 50%, #5C3A4D 100%) !important;
}

.homepage .hp-hero .hp-hero__statement,
.hej-modules .hp-hero .hp-hero__statement {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
}

/* Force standpunkte 2-col card grid */
.homepage .hp-standpunkte-grid,
.hej-modules .hp-standpunkte-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    margin-top: 1.5rem !important;
}

.homepage .hp-standpunkte-card,
.hej-modules .hp-standpunkte-card {
    display: block !important;
    padding: 1.5rem !important;
    border: 1px solid #E4E0DA !important;
    border-radius: 24px !important;
    background: #fff !important;
    text-decoration: none !important;
    color: #1A1128 !important;
}

/* Legacy standpunkte overrides (fallback) */
.homepage .hp-standpunkte,
.hej-modules .hp-standpunkte {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.5rem 0 0 !important;
    max-width: 700px !important;
}

.homepage .hp-standpunkte .hp-standpunkte__item,
.hej-modules .hp-standpunkte .hp-standpunkte__item {
    display: flex !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    padding: 1.25rem 0 !important;
    border-bottom: 1px solid #E4E0DA !important;
    list-style: none !important;
}

.homepage .hp-standpunkte .hp-standpunkte__item:first-child,
.hej-modules .hp-standpunkte .hp-standpunkte__item:first-child {
    border-top: 1px solid #E4E0DA !important;
}

.homepage .hp-standpunkte .hp-standpunkte__icon,
.hej-modules .hp-standpunkte .hp-standpunkte__icon {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    background: #AF231C !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

/* Force blob row 3-column grid */
.homepage .hp-blobs-row,
.hej-modules .hp-blobs-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    text-align: center !important;
}

/* .hp-blob-link ist Direktkind von .hp-blobs-row (is-layout-constrained) -
   Gutenberg setzt margin-block-start:24px auf jedes Kind außer dem
   allerersten (DOM-Reihenfolge), wodurch der erste Blob 24px höher als
   die übrigen sitzt. Der grid-gap übernimmt bereits den Abstand. */
.homepage .hp-blob-link,
.hej-modules .hp-blob-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    margin-top: 0 !important;
}

.homepage .hp-blob-link .hp-blob-link__image,
.hej-modules .hp-blob-link .hp-blob-link__image {
    width: 200px !important;
    height: 200px !important;
    overflow: hidden !important;
    background: #F0EDE8 !important;
    margin-bottom: 1rem !important;
}

.homepage .hp-blob-link:nth-child(1) .hp-blob-link__image,
.hej-modules .hp-blob-link:nth-child(1) .hp-blob-link__image {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% !important;
    transition: border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.homepage .hp-blob-link:nth-child(2) .hp-blob-link__image,
.hej-modules .hp-blob-link:nth-child(2) .hp-blob-link__image {
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50% !important;
    transition: border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.homepage .hp-blob-link:nth-child(3) .hp-blob-link__image,
.hej-modules .hp-blob-link:nth-child(3) .hp-blob-link__image {
    border-radius: 40% 60% 60% 40% / 70% 30% 70% 30% !important;
    transition: border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover: blob morpht zu anderer Form */
.homepage .hp-blob-link:hover .hp-blob-link__image,
.hej-modules .hp-blob-link:hover .hp-blob-link__image {
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50% !important;
}
.homepage .hp-blob-link:hover,
.hej-modules .hp-blob-link:hover {
    transform: translateY(-4px) !important;
}

/* Gutenberg-Bildblock wickelt <img> in <figure class="wp-block-image">;
   die Figure braucht selbst eine feste Höhe, sonst kann sich height:100%
   auf dem <img> nicht auflösen und das Bild bleibt im eigenen
   Seitenverhältnis statt den 200x200px-Blob zu füllen. */
.homepage .hp-blob-link .hp-blob-link__image figure,
.hej-modules .hp-blob-link .hp-blob-link__image figure {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.homepage .hp-blob-link .hp-blob-link__image img,
.hej-modules .hp-blob-link .hp-blob-link__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.homepage .hp-blob-link .hp-blob-link__label,
.hej-modules .hp-blob-link .hp-blob-link__label {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
}

/* Force highlight section */
.homepage .hp-highlight,
.hej-modules .hp-highlight {
    background: #F0EDE8 !important;
    padding: 4rem 0 !important;
}

.homepage .hp-highlight .hp-highlight__inner,
.hej-modules .hp-highlight .hp-highlight__inner {
    max-width: 700px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    text-align: center !important;
}

/* Force cards row 3-col */
.homepage .hp-cards-row,
.hej-modules .hp-cards-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
}

.homepage .hp-card,
.hej-modules .hp-card {
    background: #fff !important;
    border: 1px solid #E4E0DA !important;
    border-radius: 24px !important;
    overflow: hidden !important;
}

.homepage .hp-card .hp-card__image img,
.hej-modules .hp-card .hp-card__image img {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
}

/* Force facts grid.
   margin-left/right:0 nötig, weil Gutenberg-Core-CSS Direktkinder von
   .is-layout-constrained (hp-facts__inner) per !important auto-zentriert
   (margin-left/right:auto) - ohne diesen Override rutscht das Grid trotz
   eigenem max-width:800px in die Mitte statt linksbündig zu bleiben. */
.homepage .hp-facts__grid,
.hej-modules .hp-facts__grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    max-width: 800px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* .hp-fact ist Direktkind von .hp-facts__grid, das die Klasse
   is-layout-constrained trägt. Gutenberg-Core-CSS erzwingt dafür per
   !important max-width:var(--wp--style--global--content-size) sowie
   margin-left/right:auto - beide Auto-Margins zusammen lassen das Grid-Item
   auf seine Inhaltsbreite schrumpfen ("shrink-to-fit") und zentrieren es
   in seiner Spalte, statt sie auszufüllen. Zusätzlich setzt Gutenberg
   margin-block-start:24px auf jedes Kind außer dem allerersten (DOM-Reihenfolge) -
   im 2-spaltigen Grid bekommt dadurch nur "12" (Kind 1) margin-top:0,
   "§20"/"ERG"/"ESG" (Kind 2-4) je 24px, wodurch Zeile 1 nicht mehr auf
   gleicher Höhe steht. margin-top:0 gilt hier für alle vier Items, da die
   4rem-Zahlen bereits genug eigenen Abstand zum vorherigen Element haben. */
.homepage .hp-fact,
.hej-modules .hp-fact {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
}

.homepage .hp-fact__number,
.hej-modules .hp-fact__number {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    line-height: 1 !important;
    color: #1A1128 !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

/* .hp-fact__label hat selbst ein legitimes max-width:280px fürs
   Textumbrechen - das macht die Breite "definit" statt auto, wodurch
   Gutenbergs .is-layout-constrained > *-Regel (margin-left/right:auto
   !important) sie zentriert statt linksbündig zu lassen. */
.homepage .hp-fact__label,
.hej-modules .hp-fact__label {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Force tag pills */
.homepage .hp-tags,
.hej-modules .hp-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

/* .hp-tag ist Direktkind von .hp-tags (is-layout-constrained) - Gutenberg
   setzt margin-block-start:24px auf jedes Kind außer dem allerersten
   (DOM-Reihenfolge), wodurch das erste Tag 24px höher als die übrigen
   Tags in derselben umgebrochenen Zeile sitzt. Zusätzlich erzwingt dieselbe
   Core-Regel margin-left/right:auto - als Flex-Item (.hp-tags ist
   display:flex) saugt "auto" jeden übrigen Platz in der Zeile als Margin
   auf, statt ihn frei zu lassen. Bei voller erster Zeile kaum sichtbar,
   bei der kurzen zweiten Zeile (nur 2 Tags) reißt das die Pills weit
   auseinander statt sie linksbündig zu lassen. */
.homepage .hp-tag,
.hej-modules .hp-tag {
    display: inline-block !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.4375rem 1rem !important;
    border: 1.5px solid #E4E0DA !important;
    border-radius: 100px !important;
    color: #6B6275 !important;
    background: transparent !important;
    margin: 0 !important;
}

/* Force portfolio 4-col */
.homepage .hp-portfolio-grid,
.hej-modules .hp-portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

/* Force dark section */
.homepage .hp-dark-section,
.hej-modules .hp-dark-section {
    background: linear-gradient(135deg, #0F0A1A 0%, #3A1F5C 50%, #462639 100%) !important;
    color: #fff !important;
    padding: 5rem 0 !important;
}

.homepage .hp-dark-section h2,
.hej-modules .hp-dark-section h2 {
    color: #fff !important;
}

/* .hp-dark-section__content ist Direktkind von .hp-dark-section__inner
   (is-layout-constrained) und hat ein eigenes max-width:600px fürs
   Textumbrechen - dieselbe Gutenberg-Core-Regel wie bei Facts-Label/
   Tag-Pills zentriert es dadurch per margin-left/right:auto !important,
   statt es wie im Original linksbündig am Container-Rand zu lassen. */
.homepage .hp-dark-section__content,
.hej-modules .hp-dark-section__content {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Force mission centered */
.homepage .hp-mission .hp-mission__inner,
.hej-modules .hp-mission .hp-mission__inner {
    max-width: 700px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Force eyebrow styling */
.homepage .eyebrow,
.hej-modules .eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #AF231C !important;
    margin-bottom: 0.75rem !important;
}

.homepage .eyebrow::before,
.hej-modules .eyebrow::before {
    content: '' !important;
    display: inline-block !important;
    width: 24px !important;
    height: 2px !important;
    background: #AF231C !important;
    border-radius: 2px !important;
}

/* Force section padding */
.homepage .hp-section,
.hej-modules .hp-section {
    padding: 4rem 0 !important;
}

.homepage .hp-section .hp-section__inner,
.hej-modules .hp-section .hp-section__inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

/* Button overrides */
.homepage .btn-primary,
.hej-modules .btn-primary {
    background: #AF231C !important;
    color: #fff !important;
    border-radius: 100px !important;
    padding: 0.75rem 1.75rem !important;
    font-weight: 600 !important;
    border: none !important;
    display: inline-flex !important;
    text-decoration: none !important;
}

.homepage .btn-outline,
.hej-modules .btn-outline {
    background: transparent !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.3) !important;
    border-radius: 100px !important;
    padding: 0.75rem 1.75rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    text-decoration: none !important;
}

/* Mobile overrides */
@media (max-width: 768px) {
    .homepage .hp-hero .hp-hero__inner,
    .hej-modules .hp-hero .hp-hero__inner {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    .homepage .hp-hero .hp-hero__blob,
    .hej-modules .hp-hero .hp-hero__blob {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto !important;
    }
    .homepage .hp-blobs-row,
    .hej-modules .hp-blobs-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
    .homepage .hp-blob-link .hp-blob-link__image,
    .hej-modules .hp-blob-link .hp-blob-link__image {
        width: 130px !important;
        height: 130px !important;
    }
    .homepage .hp-cards-row,
    .hej-modules .hp-cards-row {
        grid-template-columns: 1fr !important;
    }
    .homepage .hp-standpunkte-grid,
    .hej-modules .hp-standpunkte-grid {
        grid-template-columns: 1fr !important;
    }
    .homepage .hp-portfolio-grid,
    .hej-modules .hp-portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .homepage .hp-blobs-row,
    .hej-modules .hp-blobs-row {
        grid-template-columns: 1fr !important;
    }
    .homepage .hp-portfolio-grid,
    .hej-modules .hp-portfolio-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════
   Leistungspaket – Single Page Template
   @since 1.4.0
   ═══════════════════════════════════════════ */

/* ── Hero ─────────────────────────────── */
.leistung-hero {
    padding: 3rem 0 2rem;
}

.leistung-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: center;
}

.leistung-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.leistung-hero__lead {
    font-size: 1.0625rem;
    color: var(--hej-text-soft);
    line-height: 1.65;
    max-width: 560px;
    margin: 0;
}

.leistung-hero__image .blob-image {
    width: 280px;
    height: 280px;
    margin-left: auto;
}

/* ── Content Area ─────────────────────── */
.leistung-content {
    padding: 2rem 0 4rem;
}

.leistung-content__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Leistung Intro Block ─────────────── */
.leistung-intro {
    max-width: 740px;
    margin-bottom: 3rem;
}

.leistung-intro p {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--hej-text-soft);
}

/* ── Leistung Service Grid ────────────── */
.leistung-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

/* ── Leistung Accordion Card ──────────── */
.leistung-card {
    background: var(--hej-white);
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.leistung-card:hover {
    border-color: rgba(81, 45, 109, 0.25);
    box-shadow: 0 4px 16px rgba(15, 10, 26, 0.06);
}

.leistung-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: var(--hej-text);
    transition: background var(--transition);
}

.leistung-card__header:hover {
    background: rgba(81, 45, 109, 0.02);
}

.leistung-card__header-text {
    flex: 1;
}

.leistung-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--hej-red);
    color: var(--hej-white);
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.75rem;
}

.leistung-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: inline;
}

.leistung-card__tagline {
    display: block;
    font-size: 0.875rem;
    color: var(--hej-text-soft);
    margin-top: 0.25rem;
    line-height: 1.45;
}

.leistung-card__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hej-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--hej-text-soft);
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.leistung-card[open] .leistung-card__icon {
    transform: rotate(45deg);
    background: var(--hej-violet);
    color: var(--hej-white);
}

/* Body (collapsible) */
.leistung-card__body {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--hej-border);
    animation: leistungFadeIn 0.3s var(--ease);
}

@keyframes leistungFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.leistung-card__body p {
    font-size: 0.9375rem;
    color: var(--hej-text-soft);
    line-height: 1.6;
    margin: 1rem 0 0;
}

.leistung-card__body strong {
    color: var(--hej-text);
    font-weight: 600;
}

.leistung-card__section-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hej-red);
    margin-top: 1.25rem;
    margin-bottom: 0.375rem;
}

.leistung-card__result {
    display: block;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: var(--hej-surface-alt);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--hej-text);
    line-height: 1.5;
}

/* ── Leistung CTA Banner ─────────────── */
.leistung-cta {
    background: var(--gradient-cosmic);
    color: var(--hej-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.leistung-cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(175, 35, 28, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -180px;
    right: -100px;
    pointer-events: none;
}

.leistung-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.leistung-cta h2 {
    color: var(--hej-white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.leistung-cta p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ── Single-column full-width variant ─── */
.leistung-grid--single {
    grid-template-columns: 1fr;
    max-width: 740px;
}

/* ── Responsive ───────────────────────── */
@media (max-width: 960px) {
    .leistung-hero__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .leistung-hero__image {
        order: -1;
    }
    .leistung-hero__image .blob-image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    .leistung-hero__inner {
        text-align: center;
    }
    .leistung-hero__lead {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .leistung-grid {
        grid-template-columns: 1fr;
    }
    .leistung-cta {
        padding: 2rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════
   Leistungs-Übersichtskarten (große Karten mit Bild)
   @since 1.4.1
   ═══════════════════════════════════════════ */

.leistung-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.leistung-overview-card {
    display: flex;
    flex-direction: column;
    background: var(--hej-white);
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--hej-text);
    transition: all 0.35s var(--ease);
    position: relative;
}

.leistung-overview-card:hover {
    border-color: var(--hej-violet);
    box-shadow: 0 12px 40px rgba(15, 10, 26, 0.1);
    transform: translateY(-4px);
    color: var(--hej-text);
    text-decoration: none;
}

/* Bild-Bereich */
.leistung-overview-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gradient-subtle);
}

.leistung-overview-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.leistung-overview-card:hover .leistung-overview-card__image img {
    transform: scale(1.05);
}

/* Gradient-Overlay auf dem Bild */
.leistung-overview-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 10, 26, 0.04) 100%);
    pointer-events: none;
}

/* Nummer-Badge oben links im Bild */
.leistung-overview-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hej-red);
    color: var(--hej-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Content-Bereich */
.leistung-overview-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.leistung-overview-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0 0 0.5rem;
}

.leistung-overview-card__desc {
    font-size: 0.9375rem;
    color: var(--hej-text-soft);
    line-height: 1.55;
    margin: 0 0 1rem;
    flex: 1;
}

/* Tags/Themen als Pills */
.leistung-overview-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.leistung-overview-card__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    background: var(--hej-surface-alt);
    border-radius: var(--radius-pill);
    color: var(--hej-text-soft);
}

/* Link-Zeile */
.leistung-overview-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hej-red);
    margin-top: auto;
    transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.leistung-overview-card:hover .leistung-overview-card__link {
    color: var(--hej-violet);
    gap: 0.625rem;
}

.leistung-overview-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s var(--ease);
}

.leistung-overview-card:hover .leistung-overview-card__link svg {
    transform: translateX(2px);
}

/* Placeholder wenn kein Bild */
.leistung-overview-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .leistung-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .leistung-overview-card__title {
        font-size: 1.125rem;
    }
}

/* ═══════════════════════════════════════════
   Über uns / Mission & Vision
   @since 1.4.2
   ═══════════════════════════════════════════ */

/* ── Vision & Mission Cards ───────────── */
.hej-about-vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0 3rem;
}

.hej-about-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.hej-about-card--vision {
    background: var(--gradient-cosmic);
    color: var(--hej-white);
}

.hej-about-card--mission {
    background: var(--hej-white);
    border: 1px solid var(--hej-border);
    color: var(--hej-text);
}

.hej-about-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.hej-about-card--vision .hej-about-card__icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--hej-white);
}

.hej-about-card--mission .hej-about-card__icon {
    background: var(--hej-surface-alt);
    color: var(--hej-red);
}

.hej-about-card__label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.hej-about-card--vision .hej-about-card__label {
    color: rgba(255, 255, 255, 0.5);
}

.hej-about-card--mission .hej-about-card__label {
    color: var(--hej-red);
}

.hej-about-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin: 0 0 1rem;
}

.hej-about-card--vision .hej-about-card__title {
    color: var(--hej-white);
}

.hej-about-card__body p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.hej-about-card--vision .hej-about-card__body p {
    color: rgba(255, 255, 255, 0.65);
}

.hej-about-card--mission .hej-about-card__body p {
    color: var(--hej-text-soft);
}

.hej-about-card__body p:last-child {
    margin-bottom: 0;
}

/* Subtle glow on vision card */
.hej-about-card--vision::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(175, 35, 28, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -120px;
    right: -80px;
    pointer-events: none;
}

/* ── Highlight Box (Schlafender Riese) ─── */
.hej-about-highlight {
    background: var(--hej-surface-alt);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    margin: 0 0 3rem;
}

.hej-about-highlight__inner {
    max-width: 640px;
    margin: 0 auto;
}

.hej-about-highlight__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    border-radius: 50%;
    background: var(--hej-white);
    box-shadow: 0 2px 12px rgba(15, 10, 26, 0.06);
    margin-bottom: 1.25rem;
}

.hej-about-highlight__title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 0.75rem;
}

.hej-about-highlight__text {
    font-size: 1rem;
    color: var(--hej-text-soft);
    line-height: 1.65;
    margin: 0;
}

/* ── 4 Säulen Grid ────────────────────── */
.hej-about-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.hej-about-pillar {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--hej-white);
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--hej-text);
    transition: all 0.3s var(--ease);
}

.hej-about-pillar:hover {
    border-color: var(--hej-violet);
    box-shadow: 0 8px 24px rgba(15, 10, 26, 0.08);
    transform: translateY(-3px);
    color: var(--hej-text);
    text-decoration: none;
}

.hej-about-pillar__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hej-red);
    color: var(--hej-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hej-about-pillar__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.hej-about-pillar__desc {
    font-size: 0.875rem;
    color: var(--hej-text-soft);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.hej-about-pillar__link {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hej-red);
    margin-top: 1rem;
    transition: color 0.25s var(--ease);
}

.hej-about-pillar:hover .hej-about-pillar__link {
    color: var(--hej-violet);
}

/* ── Story Timeline ───────────────────── */
.hej-about-story {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
}

.hej-about-story__timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.hej-about-story__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--hej-red);
    flex-shrink: 0;
}

.hej-about-story__line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--hej-red) 0%, var(--hej-violet) 100%);
    min-height: 40px;
}

.hej-about-story__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.hej-about-story__year {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hej-red);
    margin-bottom: 0.5rem;
}

.hej-about-story__chapter p {
    font-size: 0.9375rem;
    color: var(--hej-text-soft);
    line-height: 1.6;
    margin: 0;
}

/* ── Responsive ───────────────────────── */
@media (max-width: 960px) {
    .hej-about-vision-mission {
        grid-template-columns: 1fr;
    }
    .hej-about-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hej-about-pillars {
        grid-template-columns: 1fr;
    }
    .hej-about-card {
        padding: 1.5rem;
    }
    .hej-about-highlight {
        padding: 2rem 1.5rem;
    }
    .hej-about-story {
        gap: 1.25rem;
    }
}

/* ═══════════════════════════════════════════
   Kontakt Page v1.5.0
   ═══════════════════════════════════════════ */

/* ── Hero ─────────────────────────────── */
.kontakt-hero {
    position: relative;
    overflow: hidden;
    background: var(--gradient-cosmic);
    padding: 5rem 0 4rem;
    color: var(--hej-white);
}

/* Als erster Block im editierbaren Content sitzt der Hero jetzt innerhalb
   von .content-area (padding: 4rem 0, main.css:128) statt wie ursprünglich
   als eigenes <section> davor. Ohne Korrektur entsteht dadurch eine
   unerwünschte Lücke zum Header UND die ursprüngliche Lücke zum Formular
   darunter fehlt (die kam vorher von .content-areas oberem Padding).
   Verschiebt das Padding effektiv von "vor dem Hero" zu "nach dem Hero". */
.kontakt-hero:first-child {
    margin-top: -4rem;
    margin-bottom: 4rem;
}

.kontakt-hero__inner {
    position: relative;
    z-index: 1;
}

/* Als Block-Pattern trägt .kontakt-hero__inner zusätzlich .content-area__inner
   (für Breite/Zentrierung wie im Rest der Seite), sitzt aber innerhalb eines
   is-layout-constrained-Wrappers – der generische .hej-modules-Fix (oben,
   Zeile ~152) setzt max-width/margin dort auf "none"/"0" zurück und würde
   .content-area__inners eigene Regel (Zeile ~130, kommt im Stylesheet davor)
   sonst überstimmen. Kombinierter Selektor = höhere Spezifität, ohne dass
   der generische Fix für andere Module angetastet werden muss. */
.kontakt-hero__inner.content-area__inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.kontakt-hero__eyebrow {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.75rem;
}

.kontakt-hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--hej-white);
    margin: 0 0 1rem;
    max-width: 640px;
    /* WP-Core erzwingt auf Kindern von .is-layout-constrained
       margin-left/-right: auto !important (Zentrierung) – hier per
       !important zurücksetzen, sonst wandert der Text nach rechts
       (Präzedenz: .hp-hero__statement-Override weiter oben). */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.kontakt-hero__lead {
    font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.kontakt-hero__blob {
    position: absolute;
    top: -40%;
    right: -8%;
    width: 420px;
    height: 420px;
    border-radius: var(--radius-blob);
    background: linear-gradient(135deg, rgba(175,35,28,0.12) 0%, rgba(81,45,109,0.18) 100%);
    filter: blur(60px);
    pointer-events: none;
}

/* ── 2-Column Layout ──────────────────── */
.kontakt-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

.kontakt-layout__primary {
    min-width: 0;
}

.kontakt-layout__sidebar {
    position: sticky;
    top: 2rem;
}

/* ── Form Section (Gutenberg Content) ─── */
.kontakt-form-section {
    margin-bottom: 3rem;
}

/* Ensure Gutenberg form fields fill width */
.kontakt-form-section input[type="text"],
.kontakt-form-section input[type="email"],
.kontakt-form-section input[type="tel"],
.kontakt-form-section textarea,
.kontakt-form-section select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-sm);
    background: var(--hej-white);
    color: var(--hej-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.kontakt-form-section input:focus,
.kontakt-form-section textarea:focus,
.kontakt-form-section select:focus {
    outline: none;
    border-color: var(--hej-red);
    box-shadow: 0 0 0 3px rgba(175,35,28,0.1);
}

.kontakt-form-section textarea {
    min-height: 140px;
    resize: vertical;
}

/* ── Themen Cards ─────────────────────── */
.kontakt-themen {
    padding-top: 0.5rem;
}

.kontakt-themen__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
}

.kontakt-themen__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.kontakt-thema-card {
    background: var(--hej-white);
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    /* Als Block-Gruppe (is-layout-constrained) streckt sich die Karte nicht
       automatisch auf die Grid-Zeilenhöhe/-spaltenbreite, obwohl
       .kontakt-themen__grid align-items/justify-items:normal (= stretch)
       hat – dadurch waren Karten unterschiedlich hoch UND (untere Zeile)
       schmaler als die Grid-Spalte statt sie ganz auszufüllen. */
    height: 100%;
    width: 100%;
    /* WP hängt jedem Block außer dem ersten automatisch einen
       Block-Gap-margin-top an (Annahme: vertikaler Block-Stack) – in einem
       mehrspaltigen Grid verschiebt das jede Karte außer der allerersten
       sichtbar nach unten. Der Zeilenabstand kommt bereits über
       .kontakt-themen__grids eigenes "gap", der margin-top ist hier also
       überflüssig und wird zurückgesetzt. */
    margin-top: 0;
}

.kontakt-thema-card:hover {
    border-color: rgba(175,35,28,0.2);
    box-shadow: 0 4px 16px rgba(15,10,26,0.06);
    transform: translateY(-2px);
}

.kontakt-thema-card__icon {
    display: block;
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.kontakt-thema-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.25rem;
}

.kontakt-thema-card__text {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--hej-text-soft);
    margin: 0;
}

/* ── Sidebar: Info Card ───────────────── */
.kontakt-infocard {
    background: var(--hej-white);
    border: 1px solid var(--hej-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1rem;
}

.kontakt-infocard__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
}

.kontakt-infocard__address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.6;
}

.kontakt-infocard__adr {
    margin: 0 0 1rem;
    color: var(--hej-text-soft);
}

.kontakt-infocard__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.kontakt-infocard__row a {
    font-size: 0.875rem;
    word-break: break-all;
}

.kontakt-infocard__svg {
    flex-shrink: 0;
    color: var(--hej-red);
}

.kontakt-infocard__social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hej-border);
}

.kontakt-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(175,35,28,0.08);
    color: var(--hej-red);
    transition: all var(--transition);
}

.kontakt-social-btn:hover {
    background: var(--hej-red);
    color: var(--hej-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(175,35,28,0.25);
}

/* ── Sidebar: CTA Card ────────────────── */
.kontakt-cta {
    background: var(--gradient-cosmic);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: var(--hej-white);
}

.kontakt-cta__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.625rem;
    color: var(--hej-white);
}

.kontakt-cta__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin: 0 0 1.25rem;
}

.kontakt-cta__btn.btn-primary {
    background: var(--hej-white);
    color: var(--hej-cosmic);
    width: 100%;
    justify-content: center;
    font-size: 0.875rem;
}

.kontakt-cta__btn.btn-primary:hover {
    background: rgba(255,255,255,0.92);
    color: var(--hej-red);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ── Kontakt Responsive ───────────────── */
@media (max-width: 960px) {
    .kontakt-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .kontakt-layout__sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .kontakt-infocard,
    .kontakt-cta {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .kontakt-hero {
        padding: 3.5rem 0 3rem;
    }

    .kontakt-themen__grid {
        grid-template-columns: 1fr;
    }

    .kontakt-layout__sidebar {
        grid-template-columns: 1fr;
    }
}

@media print {
    .kontakt-hero { background: none !important; color: #000; padding: 1rem 0; }
    .kontakt-hero__blob { display: none; }
    .kontakt-hero__eyebrow,
    .kontakt-hero__lead { color: #333; }
    .kontakt-cta { background: none !important; border: 1px solid #ccc; color: #000; }
    .kontakt-cta__title { color: #000; }
    .kontakt-cta__text { color: #333; }
}

/* ═══════════════════════════════════════════
   Väterfreundlichkeit Page
   @since 1.5.0
   ═══════════════════════════════════════════ */

/* Blockquote */
.vf-quote {
    border-left: 3px solid var(--hej-red);
    padding: 0 0 0 1.5rem;
    margin: 0 0 2.5rem 0;
    max-width: 560px;
}

.vf-quote p {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--hej-text);
    margin: 0 0 0.5rem;
}

.vf-quote cite {
    font-size: 0.875rem;
    font-style: normal;
    color: var(--hej-text-soft);
}

/* Quick Check Section */
.vf-check-section {
    background: var(--hej-surface-alt);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin: 2rem 0 0;
}

.vf-check-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.vf-check-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.vf-check-header p {
    font-size: 1rem;
    color: var(--hej-text-soft);
    line-height: 1.6;
}

/* Embedded Quick Check: remove its own padding when inside section */
.vf-check-section .hej-qc {
    padding: 0;
}

@media (max-width: 768px) {
    .vf-check-section {
        padding: 2rem 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   v1.8.3 — Sub-Menü (Hover Desktop / Accordion Mobile) + Nawi-Page
   ═══════════════════════════════════════════════════════════════ */

/* ── Desktop: Sub-Menü mit Caret, Fade-In, sauberer Hover-Brücke ── */
.site-nav__list .menu-item-has-children > a {
    position: relative;
    padding-right: 1.75rem;
}

/* Caret-Indikator (▾) für Eltern-Menüpunkte */
.site-nav__list .menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 0.625rem;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-75%) rotate(45deg);
    transition: transform var(--transition);
    opacity: 0.7;
}

.site-nav__list .menu-item-has-children:hover > a::after,
.site-nav__list .menu-item-has-children:focus-within > a::after {
    transform: translateY(-25%) rotate(-135deg);
    opacity: 1;
}

/* Sub-Menü (Desktop) — sauberer Override der alten rudimentären Styles */
.site-nav__list .sub-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid var(--hej-border);
    border-radius: 14px;
    padding: 0.5rem;
    min-width: 240px;
    box-shadow: 0 12px 32px rgba(15, 10, 26, 0.12), 0 2px 6px rgba(15, 10, 26, 0.04);
    list-style: none;
    margin: 0;
    z-index: 50;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s var(--ease);
}

/* Unsichtbare Hover-Brücke, damit der Cursor zwischen Trigger
   und Sub-Menü nicht durch eine "Gap" verloren geht */
.site-nav__list .menu-item-has-children::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
    pointer-events: none;
}

.site-nav__list .menu-item-has-children:hover::before,
.site-nav__list .menu-item-has-children:focus-within::before {
    pointer-events: auto;
}

.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu,
.site-nav__list .sub-menu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.site-nav__list .sub-menu li {
    margin: 0;
}

.site-nav__list .sub-menu a {
    display: block;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--hej-text);
    border-radius: 10px;
    line-height: 1.4;
}

.site-nav__list .sub-menu a:hover,
.site-nav__list .sub-menu a:focus-visible {
    background: rgba(81, 45, 109, 0.08);
    color: var(--hej-red);
}

.site-nav__list .sub-menu .current-menu-item > a {
    color: var(--hej-red);
    background: rgba(175, 35, 28, 0.06);
}

/* CTA-Buttons sollen kein Caret bekommen */
.site-nav__list .nav-cta.menu-item-has-children > a::after {
    display: none;
}

/* ── Mobile: Accordion-Verhalten ── */
@media (max-width: 768px) {
    /* Caret bleibt auf Mobile sichtbar (dreht sich beim Öffnen) */
    .site-nav__list .menu-item-has-children > a::after {
        right: 0.875rem;
    }

    .site-nav__list .menu-item-has-children.sub-menu-open > a::after {
        transform: translateY(-25%) rotate(-135deg);
        opacity: 1;
    }

    /* Hover-Brücke auf Mobile deaktivieren */
    .site-nav__list .menu-item-has-children::before {
        display: none;
    }

    /* Sub-Menü als Accordion: standardmäßig zu, per Klick aufklappbar */
    .site-nav__list .sub-menu {
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0.25rem 1rem;
        margin: 0;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
    }

    .site-nav__list .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        padding: 0.25rem 0 0.5rem 1rem;
    }

    /* Auf Mobile öffnet nicht der Hover, sondern explizit die .sub-menu-open Klasse */
    .site-nav__list li:hover > .sub-menu,
    .site-nav__list li:focus-within > .sub-menu {
        max-height: 0;
        padding: 0 0 0.25rem 1rem;
    }

    .site-nav__list .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px !important;
        padding: 0.25rem 0 0.5rem 1rem !important;
    }

    .site-nav__list .sub-menu a {
        padding: 0.625rem 0.5rem;
        font-size: 0.9375rem;
        color: var(--hej-text-soft);
        border-bottom: 1px solid var(--hej-border);
        border-radius: 0;
    }

    .site-nav__list .sub-menu li:last-child a {
        border-bottom: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Nawi-Page Template
   Erbt Hero/Content-Layout 1:1 vom Leistungspaket (.leistung-*).
   Hier nur noch der Abstand für die angehängte Förder-Logoleiste.
   ═══════════════════════════════════════════════════════════════ */
.nawi-page .foerder-leiste {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

/* Toggle-Button für Sub-Menüs (Mobile) — Layout neben dem Eltern-Link */
@media (max-width: 768px) {
    .site-nav__list .menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid var(--hej-border);
    }
    .site-nav__list .menu-item-has-children > a {
        flex: 1 1 auto;
        border-bottom: none;
    }
    .site-nav__list .menu-item-has-children > .sub-menu-toggle {
        flex: 0 0 auto;
        font-size: 1.1rem !important;
        transition: transform 0.2s var(--ease);
    }
    .site-nav__list .menu-item-has-children.sub-menu-open > .sub-menu-toggle {
        transform: rotate(180deg);
    }
    .site-nav__list .menu-item-has-children > .sub-menu {
        flex: 1 0 100%;
    }
    /* Caret im Eltern-Link auf Mobile ausblenden — der Toggle-Button übernimmt die Rolle */
    .site-nav__list .menu-item-has-children > a::after {
        display: none;
    }
}
