/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  GeneratePress child theme - KJH system CSS
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.3
*/


/* source-sans-3-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* source-sans-3-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body,
button,
input,
select,
textarea {
    font-family: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.main-navigation a {
    font-family: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}



/* =========================================================
   1. Design Tokens
   ========================================================= */
:root {
    /* Brand */
    --kjh-blue: #202F68;
    --kjh-blue-dark: #172557;
    --kjh-orange: #F28A08;
    --kjh-green: #8BC21F;
    --kjh-yellow: #F3C544;
    --kjh-sky: #6BAFD7;

    /* Text */
    --kjh-text: #1D2433;
    --kjh-muted: #5E6A7D;

    /* Surfaces */
    --kjh-bg-page: #FFFDF8;
    --kjh-bg-panel: #FFF6EA;
    --kjh-bg-card: #FFFFFF;
    --kjh-bg-footer: #FFF8EE;
    --kjh-white: #FFFFFF;

    /* Backwards-compatible aliases */
    --kjh-light: var(--kjh-bg-page);
    --kjh-soft-blue: var(--kjh-bg-panel);

    /* Lines / Effects */
    --kjh-border: #F4EFDF;
    --kjh-feature-line: var(--kjh-border);
    --kjh-shadow-card: 0 10px 28px rgba(20, 38, 80, 0.06);
    --kjh-shadow-panel: 0 12px 30px rgba(32, 47, 104, 0.06);
    --kjh-shadow-media: 0 18px 45px rgba(20, 38, 80, 0.12);

    /* Layout */
    --kjh-container: 1180px;
    --kjh-header-container: 1271px;
    --kjh-radius: 10px;
    --kjh-radius-sm: 8px;

    /* Spacing */
    --kjh-space-xs: 12px;
    --kjh-space-sm: 20px;
    --kjh-space-md: 34px;
    --kjh-space-lg: 50px;
    --kjh-space-xl: 70px;
}

/* =========================================================
   2. Base
   ========================================================= */
body {
    color: var(--kjh-text);
    /*  background: var(--kjh-bg-page); */
    background: none;
    font-size: 17px;
    line-height: 1.65;
}

.site,
.site-content,
.inside-article {
    background: var(--kjh-bg-page);
}

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

.kjh-section h1,
.kjh-section h2,
.kjh-section h3 {
    color: var(--kjh-blue);
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 18px;
}

.kjh-section h1 {
    font-size: clamp(2.2rem, 4vw, 2.5rem);
    letter-spacing: -0.03em;
    font-weight: 600;
}

.kjh-section h2 {
    letter-spacing: -0.02em;
    font-weight: 600;
}

.kjh-section h3 {
    font-size: 1.25rem;
}

.kjh-section p {
    color: var(--kjh-muted);
}

.kjh-section p:last-child,
.kjh-card p:last-child,
.kjh-panel p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   3. Header + Navigation
   ========================================================= */
.inside-header {
    max-width: var(--kjh-header-container);
}

.site-logo img,
.site-header .header-image {
    max-height: 72px;
    width: auto;
}

.main-navigation {
    background: transparent;
}

.main-navigation .main-nav ul li a {
    color: #0f2147;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 16px 18px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-navigation .main-nav ul li:not(.menu-cta)>a:hover {
    color: var(--kjh-blue);
}

.main-navigation .main-nav ul li.current-menu-item:not(.menu-cta)>a,
.main-navigation .main-nav ul li.current_page_item:not(.menu-cta)>a {
    color: var(--kjh-blue);
    background: transparent;
    position: relative;
}

.main-navigation .main-nav ul li.current-menu-item:not(.menu-cta)>a::after,
.main-navigation .main-nav ul li.current_page_item:not(.menu-cta)>a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 6px;
    height: 2px;
    background: var(--kjh-blue);
    border-radius: 2px;
}

.main-navigation .main-nav ul li[class*="current-menu-"]>a {
    background: transparent;
}

/* Preferred: set menu item CSS class to .menu-cta. Last-child is fallback. */
/*
.main-navigation .main-nav ul li.menu-cta>a,
.main-navigation .main-nav ul li:last-child>a {
    background: var(--kjh-blue);
    color: var(--kjh-white);
    border-radius: 6px;
    padding: 14px 22px;
    margin-left: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(32, 47, 104, 0.18);
}

.main-navigation .main-nav ul li.menu-cta>a:hover,
.main-navigation .main-nav ul li:last-child>a:hover {
    background: var(--kjh-blue-dark);
    color: var(--kjh-white);
}

.main-navigation .main-nav ul li.menu-cta.current-menu-item>a,
.main-navigation .main-nav ul li:last-child.current-menu-item>a {
    background: var(--kjh-blue);
    color: var(--kjh-white);
}
    */

/* =========================================================
   4. Layout System
   ========================================================= */
.kjh-section {
    padding: var(--kjh-space-lg) 24px;
}

.kjh-section--hero,
.kjh-section.kjh-hero {
    padding-top: var(--kjh-space-xl);
    padding-bottom: var(--kjh-space-xl);
}

.kjh-section--compact,
.kjh-facts-section {
    padding-top: 30px;
    padding-bottom: var(--kjh-space-xl);
}

.kjh-section--light,
.kjh-light-bg {
    background: var(--kjh-bg-panel);
}

.kjh-container {
    max-width: var(--kjh-container);
    margin-inline: auto;
}

.kjh-grid,
.kjh-card-grid-3,
.kjh-feature-grid-4,
.kjh-fact-grid {
    display: grid;
    gap: var(--kjh-space-md);
}

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

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

.kjh-grid--4,
.kjh-feature-grid-4,
.kjh-fact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kjh-split,
.kjh-hero-grid,
.kjh-profile-box {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--kjh-space-xl);
    align-items: center;
}

.kjh-split--balanced {
    grid-template-columns: 1fr 1fr;
}

.kjh-split--reverse> :first-child {
    order: 2;
}

.kjh-split--reverse> :last-child {
    order: 1;
}

.kjh-office-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 46px;
    align-items: center;
}

.kjh-office-panel h2 {
    margin-bottom: 18px;
}

.kjh-office-panel p {
    max-width: 620px;
    margin-bottom: 0;
}

.kjh-office-panel .kjh-checklist {
    align-self: center;
}

/* =========================================================
   5. Hero Accent
   ========================================================= */
.kjh-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.kjh-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    left: max(-140px, calc(50% - 760px));
    width: 560px;
    height: 560px;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 32% 38%, rgba(242, 138, 8, 0.15) 0 125px, transparent 128px),
        radial-gradient(circle at 54% 42%, rgba(139, 194, 31, 0.13) 0 155px, transparent 158px),
        radial-gradient(circle at 36% 64%, rgba(243, 197, 68, 0.10) 0 135px, transparent 138px),
        radial-gradient(circle at 62% 68%, rgba(107, 175, 215, 0.09) 0 115px, transparent 118px);
    opacity: 0.62;
    filter: blur(1px);
}

.kjh-hero>* {
    position: relative;
    z-index: 1;
}

/* =========================================================
   6. Media
   ========================================================= */
.kjh-media img,
.kjh-hero-image img {
    width: 100%;
    border-radius: var(--kjh-radius-sm);
    box-shadow: var(--kjh-shadow-media);
}

.kjh-media--cover,
.kjh-focus-media {
    min-height: 280px;
    border-radius: var(--kjh-radius-sm);
    overflow: hidden;
    background: #E6EDF6;
}

.kjh-media--cover img,
.kjh-focus-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.kjh-hero-text p {
    max-width: 620px;
    font-size: 1.12rem;
}

/* =========================================================
   7. Cards / Panels / Feature Items
   ========================================================= */
.kjh-card,
.kjh-feature,
.kjh-fact-card {
    background: var(--kjh-bg-card);
    border: 1px solid var(--kjh-border);
    border-radius: var(--kjh-radius);
    padding: var(--kjh-space-md);
    box-shadow: var(--kjh-shadow-card);
}

.kjh-card h3,
.kjh-feature h3,
.kjh-fact-card h3 {
    margin-bottom: 12px;
}

.kjh-card--fact svg,
.kjh-card--fact img,
.kjh-fact-card svg,
.kjh-fact-card img {
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
}

.kjh-card--fact h3,
.kjh-fact-card h3 {
    color: var(--kjh-blue);
    font-size: 19px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.kjh-card--fact p,
.kjh-fact-card p {
    color: var(--kjh-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}


.kjh-card--summary h2,
.kjh-card--summary h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    line-height: 1.18;
    margin-bottom: 14px;
}

.kjh-card--summary p {
    font-size: 16px;
    line-height: 1.6;
}








.kjh-panel,
.kjh-focus-panel {
    background: var(--kjh-bg-panel);
    border: 1px solid var(--kjh-border);
    border-radius: var(--kjh-radius);
    padding: 42px;
    box-shadow: var(--kjh-shadow-panel);
}

.kjh-focus-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 46px;
    align-items: stretch;
}

.kjh-focus-text {
    max-width: 760px;
}

.kjh-focus-text h2 {
    margin: 0 0 22px;
}

.kjh-focus-text p {
    margin: 0 0 18px;
    color: var(--kjh-muted);
    font-size: 18px;
    line-height: 1.7;
}

.kjh-intro-cards-section .kjh-card h2 {
    font-size: 25px;
}

.kjh-feature-grid-4 {
    column-gap: 52px;
    max-width: var(--kjh-container);
    margin-inline: auto;
    align-items: start;
}

.kjh-feature-item {
    position: relative;
    min-width: 0;
}

.kjh-feature-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -2px;
    width: 1px;
    background: var(--kjh-feature-line);
}

.kjh-feature-grid-4 .kjh-feature-item>h3 {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    min-height: 58px;
    margin: 0 0 18px !important;
    padding: 0 !important;
    color: var(--kjh-blue);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.01em;
    box-sizing: border-box;
}

.kjh-feature-grid-4 .kjh-feature-item>h3 .gb-shape {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.kjh-feature-grid-4 .kjh-feature-item>h3 .gb-shape svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    display: block;
}

.kjh-feature-grid-4 .kjh-feature-item>h3 .gb-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.kjh-feature-grid-4 .kjh-feature-item>p {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--kjh-muted);
    font-size: 17px;
    line-height: 1.65;
    box-sizing: border-box;
}

/* =========================================================
   8. Buttons
   ========================================================= */
.kjh-button-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.wp-block-button.kjh-btn .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: none;
}

.wp-block-button.kjh-btn-primary .wp-block-button__link {
    background: var(--kjh-blue) !important;
    color: var(--kjh-white) !important;
    border: 1px solid var(--kjh-blue) !important;
}

.wp-block-button.kjh-btn-primary .wp-block-button__link:hover {
    background: var(--kjh-blue-dark) !important;
    border-color: var(--kjh-blue-dark) !important;
    color: var(--kjh-white) !important;
    box-shadow: 0 8px 18px rgba(32, 47, 104, 0.18);
    transform: translateY(-1px);
}

.wp-block-button.kjh-btn-secondary .wp-block-button__link {
    background: var(--kjh-white) !important;
    color: var(--kjh-blue) !important;
    border: 1px solid var(--kjh-blue) !important;
}

.wp-block-button.kjh-btn-secondary .wp-block-button__link:hover,
.wp-block-button.kjh-cta-button .wp-block-button__link:hover {
    background: var(--kjh-bg-panel) !important;
    color: var(--kjh-blue) !important;
    border-color: var(--kjh-blue) !important;
    box-shadow: 0 8px 18px rgba(32, 47, 104, 0.10);
    transform: translateY(-1px);
}

.wp-block-button.kjh-btn .wp-block-button__link:focus-visible,
.wp-block-button.kjh-cta-button .wp-block-button__link:focus-visible {
    outline: 3px solid rgba(32, 47, 104, 0.28);
    outline-offset: 3px;
}

/* =========================================================
   9. Checklist / Icons
   ========================================================= */
.kjh-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kjh-checklist li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 34px;
    color: var(--kjh-blue);
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
}

.kjh-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--kjh-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kjh-blue);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.kjh-checklist li:last-child {
    margin-bottom: 0;
}

.kjh-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    color: var(--kjh-blue);
}

.kjh-icon svg {
    width: 100%;
    height: 100%;
}

/* =========================================================
   10. Profile / CTA
   ========================================================= */
.kjh-profile-box {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 42px;
    background: var(--kjh-bg-panel);
    border: 1px solid var(--kjh-border);
    border-radius: var(--kjh-radius);
    overflow: hidden;
    box-shadow: var(--kjh-shadow-panel);
}

.kjh-profile-box img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.kjh-profile-content {
    padding: 34px 34px 34px 0;
}

.kjh-cta-band {
    background: var(--kjh-blue);
    color: var(--kjh-white);
    border-radius: var(--kjh-radius);
    padding: 42px 50px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    box-shadow: 0 14px 32px rgba(32, 47, 104, 0.14);
}

.kjh-cta-band h2,
.kjh-cta-band .gb-text,
.kjh-cta-band p {
    color: var(--kjh-white);
    margin: 0;
}

.kjh-cta-band h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 640px;
}

.wp-block-button.kjh-cta-button .wp-block-button__link {
    background: var(--kjh-white) !important;
    color: var(--kjh-blue) !important;
    border: 1px solid var(--kjh-white) !important;
    border-radius: 6px;
    padding: 15px 26px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: all 0.18s ease;
}


/* Personen-Cards */
/* Personen-Cards */
.kjh-person-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.kjh-person-card {
    background: var(--kjh-white);
    border: 1px solid var(--kjh-border);
    border-radius: var(--kjh-radius);
    overflow: hidden;
    box-shadow: var(--kjh-shadow-card);
}

.kjh-person-card__inner {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    /*  height: 100%; */
}

.kjh-person-media {
    min-height: 240px;
}

.kjh-person-media img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}

.kjh-person-content {
    padding: 28px;
}

.kjh-person-content h3 {
    margin: 0 0 10px;
    color: var(--kjh-blue);
    font-size: 1.25rem;
    line-height: 1.2;
}

.kjh-person-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.kjh-person-content p:first-of-type {
    color: var(--kjh-blue);
    font-weight: 400;
}

@media (max-width: 900px) {
    .kjh-person-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .kjh-person-card__inner {
        grid-template-columns: 1fr;
    }

    .kjh-person-media,
    .kjh-person-media img {
        min-height: 260px;
    }

    .kjh-person-content {
        padding: 24px;
    }
}






/* ********************************************************* */
/* Footer */
/* ********************************************************* */

.site-footer {
    /*
    background: #FAF7F1;
    border-top: 1px solid #E8DCCB;
    margin-top: 70px;
    */
}

.footer-widgets {
    background: transparent;
    padding: 42px 24px 34px;
}

.footer-widgets-container {
    max-width: 1180px;
    margin: 0 auto;
}

.inside-footer-widgets {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.7fr;
    gap: 70px;
    align-items: start;
}

/* Footer Widgets neutralisieren */
.footer-widgets .widget {
    margin: 0;
    padding: 0;
}

.footer-widgets .inner-padding {
    padding: 0;
}

/* Logo */
.footer-widget-1 img {
    max-width: 300px;
    height: auto;
    display: block;
}

/* Kontaktdaten */
.footer-widget-2 {
    display: grid;
    gap: 14px;
}

.footer-widget-2 p {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;

    margin: 0;
    color: var(--kjh-text);
    font-size: 16px;
    line-height: 1.45;
}

.footer-widget-2 .gb-shape {
    width: 22px;
    height: 22px;
    color: var(--kjh-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.footer-widget-2 .gb-shape svg {
    width: 17px;
    height: 17px;
}

.footer-widget-2 a {
    color: var(--kjh-blue);
    text-decoration: none;
    font-weight: 600;
}

.footer-widget-2 a:hover {
    color: var(--kjh-blue-dark);
    text-decoration: underline;
}

/* Footer Menü */
.footer-widget-3 .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget-3 .menu li {
    margin: 0 0 12px;
}

.footer-widget-3 .menu a {
    color: var(--kjh-blue);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.footer-widget-3 .menu a:hover {
    color: var(--kjh-blue-dark);
    text-decoration: underline;
}

/* Leere Copyright-Zeile entfernen */
.site-info {
    display: none;
}

/* Tablet */
@media (max-width: 900px) {
    .inside-footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-widget-1 {
        grid-column: 1 / -1;
    }

    .footer-widget-1 img {
        max-width: 280px;
    }
}

/* Mobil */
@media (max-width: 640px) {
    .site-footer {
        margin-top: 50px;
    }

    .footer-widgets {
        padding: 34px 24px;
    }

    .inside-footer-widgets {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-widget-1 img {
        max-width: 260px;
    }

    .footer-widget-2 p {
        grid-template-columns: 22px 1fr;
    }
}

/* ********************************************************* */














/* =========================================================
   12. Responsive
   ========================================================= */
@media (max-width: 900px) {
    .kjh-section {
        padding: 60px 22px;
    }

    .kjh-split,
    .kjh-hero-grid,
    .kjh-office-panel,
    .kjh-profile-box,
    .kjh-focus-panel,
    .kjh-cta-band {
        grid-template-columns: 1fr;
    }

    .kjh-grid--4,
    .kjh-feature-grid-4,
    .kjh-fact-grid,
    .kjh-grid--3,
    .kjh-card-grid-3,
    .kjh-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kjh-split,
    .kjh-hero-grid {
        gap: 40px;
    }

    .kjh-profile-content {
        padding: 34px;
    }

    .kjh-focus-panel {
        gap: 30px;
        padding: 36px;
    }

    .kjh-focus-media,
    .kjh-focus-media img,
    .kjh-media--cover,
    .kjh-media--cover img {
        min-height: 260px;
    }

    .kjh-feature-item:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .inside-header {
        padding: 14px 20px;
    }

    .site-logo img,
    .site-header .header-image {
        max-height: 62px;
    }

    .main-navigation .menu-toggle {
        color: var(--kjh-blue);
        background: transparent;
        font-weight: 700;
    }

    .main-navigation .main-nav ul li a {
        padding: 14px 20px;
        font-size: 16px;
    }

    /* test */
    .main-navigation.toggled .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-navigation .main-nav ul li.menu-cta>a,
    .main-navigation .main-nav ul li:last-child>a {
        margin: 12px 20px 18px;
        text-align: center;
        display: block;
    }

    .main-navigation .main-nav ul li.current-menu-item:not(.menu-cta)>a::after,
    .main-navigation .main-nav ul li.current_page_item:not(.menu-cta)>a::after {
        display: none;
    }

    .kjh-hero::before {
        top: -40px;
        left: -180px;
        width: 480px;
        height: 480px;
        opacity: 0.55;
    }
}

@media (max-width: 760px) {
    .kjh-cta-band {
        grid-template-columns: 1fr;
        padding: 32px 26px;
        gap: 24px;
        text-align: left;
    }

    .wp-block-button.kjh-cta-button,
    .wp-block-button.kjh-cta-button .wp-block-button__link {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .kjh-section {
        padding: 48px 20px;
    }

    .kjh-grid--4,
    .kjh-feature-grid-4,
    .kjh-fact-grid,
    .kjh-grid--3,
    .kjh-card-grid-3,
    .kjh-grid--2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kjh-card,
    .kjh-feature,
    .kjh-fact-card,
    .kjh-panel,
    .kjh-focus-panel {
        padding: 26px;
    }

    .kjh-card {
        min-height: 180px;
    }

    .kjh-button-row,
    .wp-block-buttons:has(.kjh-btn) {
        flex-direction: column;
        gap: 14px;
    }

    .wp-block-button.kjh-btn,
    .wp-block-button.kjh-btn .wp-block-button__link,
    .kjh-btn-primary,
    .kjh-btn-secondary {
        width: 100%;
    }

    .kjh-focus-text p {
        font-size: 16px;
        line-height: 1.65;
    }

    .kjh-focus-media,
    .kjh-focus-media img,
    .kjh-media--cover,
    .kjh-media--cover img {
        min-height: 220px;
    }

    .kjh-feature-grid-4 {
        column-gap: 0;
        row-gap: 0;
    }

    .kjh-feature-item {
        padding: 24px 0;
        border-top: 1px solid var(--kjh-feature-line);
    }

    .kjh-feature-item:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .kjh-feature-item::after {
        display: none !important;
    }

    .kjh-feature-grid-4 .kjh-feature-item>h3 {
        min-height: 0;
        margin-bottom: 12px !important;
    }

    .kjh-cta-band {
        padding: 32px 26px;
    }
}



/* ********************************************************* */
/* WordPress Standard-Galerie: sauberes Grid statt gestreckter letzter Zeile */
.kjh-wp-gallery.wp-block-gallery.has-nested-images {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}

.kjh-wp-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
    width: auto !important;
    flex: none !important;
    margin: 0 !important;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.kjh-wp-gallery.wp-block-gallery.has-nested-images figure.wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Falls Bildunterschriften genutzt werden */
.kjh-wp-gallery.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Tablet */
@media (max-width: 900px) {
    .kjh-wp-gallery.wp-block-gallery.has-nested-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 640px) {
    .kjh-wp-gallery.wp-block-gallery.has-nested-images {
        grid-template-columns: 1fr;
    }
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
    border-radius: 5px;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    font-size: 19px;
    padding-bottom: 0;
}





/* =========================================================
   Accent System
   Wird nur aktiv, wenn ein Abschnitt explizit eine Accent-Klasse bekommt.
   ========================================================= */

.kjh-accent-circles {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.kjh-accent-circles::before {
    content: "";
    position: absolute;
    top: -80px;
    left: max(-140px, calc(50% - 760px));
    width: 560px;
    height: 560px;
    z-index: 0;
    pointer-events: none;

    background:
        radial-gradient(circle at 32% 38%, rgba(233, 138, 44, 0.15) 0 125px, transparent 128px),
        radial-gradient(circle at 54% 42%, rgba(120, 169, 67, 0.13) 0 155px, transparent 158px),
        radial-gradient(circle at 36% 64%, rgba(243, 197, 68, 0.10) 0 135px, transparent 138px),
        radial-gradient(circle at 62% 68%, rgba(107, 175, 215, 0.09) 0 115px, transparent 118px);

    opacity: 0.62;
    filter: blur(1px);
}

.kjh-accent-circles>* {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .kjh-accent-circles::before {
        top: -40px;
        left: -180px;
        width: 480px;
        height: 480px;
        opacity: 0.55;
    }
}





/* Kontaktseite schnell sauberziehen */

.kjh-contact-simple-panel {
    background: #F7F0E6;
    border: 1px solid #E8DCCB;
    border-radius: 10px;
    padding: 46px;
    box-shadow: 0 10px 28px rgba(32, 47, 104, 0.06);
}

.kjh-contact-simple-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: start;
}

.kjh-contact-simple-brand {
    padding-right: 42px;
    border-right: 1px solid #E1D4C3;
}

.kjh-contact-simple-brand h2 {
    margin-top: 0;
    color: var(--kjh-blue);
}

.kjh-contact-simple-brand p {
    max-width: 460px;
}

.kjh-contact-simple-data {
    display: grid;
    gap: 20px;
}

.kjh-contact-simple-data p {
    margin: 0;
    color: var(--kjh-text);
}

.kjh-contact-simple-data a {
    color: var(--kjh-blue);
    font-weight: 700;
}

.kjh-contact-simple-data a:hover {
    color: var(--kjh-blue-dark);
    text-decoration: underline;
}

.kjh-contact-simple-data strong {
    display: block;
    color: var(--kjh-blue);
    font-size: 18px;
    margin-bottom: 4px;
}

.kjh-contact-hero-image img,
.kjh-page-hero-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(20, 38, 80, 0.12);
}

/* CTA Abstand verbessern */
.kjh-contact-cta-section {
    padding-top: 40px;
}

/* Mobil */
@media (max-width: 900px) {
    .kjh-contact-simple-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .kjh-contact-simple-brand {
        border-right: 0;
        border-bottom: 1px solid #E1D4C3;
        padding-right: 0;
        padding-bottom: 28px;
    }
}

@media (max-width: 640px) {
    .kjh-contact-simple-panel {
        padding: 28px;
    }
}






/* =========================================================
   Team-Seite final
   Bild oben, Inhalt darunter
   ========================================================= */

.kjh-team-page-hero {
    padding-top: 70px;
    padding-bottom: 34px;
}

.kjh-team-intro {
    max-width: 760px;
}

.kjh-team-intro h2 {
    color: var(--kjh-blue);
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 22px;
    font-weight: 600;
}

.kjh-team-intro p {
    color: var(--kjh-muted);
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 18px;
}

/* Grid */
.kjh-team-list-section {
    padding-top: 20px;
}

.kjh-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 0;
}

/* Card */
.kjh-team-card {
    background: var(--kjh-bg-card);
    border: 1px solid var(--kjh-border);
    border-radius: var(--kjh-radius);
    overflow: hidden;
    box-shadow: var(--kjh-shadow-card);
    display: flex;
    flex-direction: column;
}

/* bestehende Verschachtelung neutralisieren */
.kjh-team-card .kjh-person-card__inner {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

/* Bild */
.kjh-team-card img.kjh-person-media {
    width: 100%;
    height: auto;
    /* aspect-ratio: 4 / 3.4; */
    object-fit: cover;
    object-position: center top;
    background: #E8E0D3;
    display: block;
}

/* Inhalt */
.kjh-team-card .kjh-person-content {
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kjh-team-card h3 {
    color: var(--kjh-blue);
    font-size: 22px;
    line-height: 1.18;
    font-weight: 600;
    margin: 0 0 5px;
}

.kjh-team-card h4 {
    color: var(--kjh-blue);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 16px;
}

.kjh-team-card p {
    color: var(--kjh-muted);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
}

/* Support-Rollen etwas dezenter */
.kjh-team-card--support {
    background: var(--kjh-bg-panel);
}

/* offene Stelle */
.kjh-team-card--open {
    border-style: dashed;
}

.kjh-team-card--open img.kjh-person-media {
    opacity: 0.65;
    filter: grayscale(0.3);
}

/* Tablet */
@media (max-width: 1000px) {
    .kjh-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobil */
@media (max-width: 640px) {
    .kjh-team-page-hero {
        padding-top: 48px;
        padding-bottom: 24px;
    }

    .kjh-team-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .kjh-team-card img.kjh-person-media {
        /* aspect-ratio: 4 / 3.2; */
    }

    .kjh-team-card .kjh-person-content {
        padding: 22px;
    }
}