/*
Theme Name:  Abdichtungen
Theme URI:   https://www.koester.lu
Author:      Addedsense
Author URI:  https://www.addedsense.lu
Description: Custom theme for Steffen Abdichtungen / Etancheite S.a.r.l.-S
Version:     3.0.0
Text Domain: abdichtungen
*/

/* ── FONTS ─────────────────────────────────────────────────── */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/inter-v20-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/inter-v20-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/inter-v20-latin-700.woff2') format('woff2');
}


/* ── DESIGN TOKENS ─────────────────────────────────────────── */
/* UI/UX Pro Max: Construction/Architecture palette (Row 51)
   + Brand blue/green as controlled accents                    */

:root {
    /* Slate neutrals (primary palette) */
    --c-slate-950: #020617;
    --c-slate-900: #0f172a;
    --c-slate-800: #1e293b;
    --c-slate-700: #334155;
    --c-slate-600: #475569;
    --c-slate-500: #64748b;
    --c-slate-400: #94a3b8;
    --c-slate-300: #cbd5e1;
    --c-slate-200: #e2e8f0;
    --c-slate-100: #f1f5f9;
    --c-slate-50:  #f8fafc;

    /* Brand accents - used sparingly, never as backgrounds */
    --c-blue:        #0095DB;
    --c-blue-dark:   #0078b0;
    --c-blue-text:   #006fa8;   /* 5.2:1 on white - AA compliant for text */
    --c-blue-light:  #e0f2fe;
    --c-green:       #65B32E;
    --c-green-dark:  #4e8f22;
    --c-green-text:  #3c7a1a;   /* 5.5:1 on white - AA compliant for text */

    /* Semantic aliases */
    --c-bg:          #ffffff;
    --c-bg-alt:      var(--c-slate-50);
    --c-bg-dark:     var(--c-slate-900);
    --c-text:        var(--c-slate-700);
    --c-text-strong: var(--c-slate-900);
    --c-text-muted:  var(--c-slate-500);
    --c-border:      var(--c-slate-200);
    --c-white:       #ffffff;

    /* Focus */
    --focus-ring: 0 0 0 3px rgba(0, 149, 219, 0.35);

    /* Typography - Inter, editorial scale */
    --font-base:      'Inter', system-ui, -apple-system, sans-serif;
    --text-xs:        clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
    --text-sm:        clamp(0.9375rem, 0.9rem + 0.2vw,  1rem);
    --text-base:      clamp(1rem,      0.97rem + 0.15vw, 1.0625rem);
    --text-md:        clamp(1.125rem,  1.05rem + 0.4vw,  1.3125rem);
    --text-lg:        clamp(1.375rem, 1.1rem  + 1.4vw,  2rem);
    --text-xl:        clamp(1.75rem,  1.3rem  + 2.25vw, 2.75rem);
    --text-2xl:       clamp(2.25rem,  1.5rem  + 3.75vw, 3.75rem);
    --text-display:   clamp(2.75rem,  1.5rem  + 6vw,    5.5rem);

    /* Spacing - generous, editorial */
    --space-2xs:  clamp(0.25rem, 0.2rem  + 0.25vw, 0.5rem);
    --space-xs:   clamp(0.5rem,  0.4rem  + 0.5vw,  0.75rem);
    --space-sm:   clamp(0.75rem, 0.6rem  + 0.75vw, 1.25rem);
    --space-md:   clamp(1.25rem, 1rem    + 1.25vw, 2rem);
    --space-lg:   clamp(2rem,    1.5rem  + 2.5vw,  3.5rem);
    --space-xl:   clamp(3.5rem,  2.5rem  + 5vw,    7rem);
    --space-2xl:  clamp(5rem,    3.5rem  + 7.5vw,  10rem);

    /* Layout */
    --header-h:      120px;
    --max-w:         1200px;
    --radius-sm:     2px;
    --radius-md:     6px;
    --radius-lg:     10px;

    /* Transitions */
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
    --trans-fast:    0.2s var(--ease-out);
    --trans-base:    0.35s var(--ease-out);
    --trans-slow:    0.5s var(--ease-out);

    /* Shadows - subtle, layered */
    --shadow-sm:  0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
    --shadow-md:  0 4px 12px rgba(15,23,42,0.06), 0 1px 4px rgba(15,23,42,0.04);
    --shadow-lg:  0 12px 32px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04);
}


/* ── RESET ─────────────────────────────────────────────────── */

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

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

body {
    font-family: var(--font-base);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
}

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

/* Inline SVGs: prevent blowup */
svg:not([width]):not([class]) {
    width: 1em;
    height: 1em;
}

svg {
    max-width: 100%;
    flex-shrink: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Inline text links inside content: clearly recognizable as links.
   :not([class]) excludes styled component links (.pdf-card, .content-img-link, .btn, cards). */
.bb-html-module a:not([class]),
.post-content a:not([class]) {
    color: var(--c-blue-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    transition: color var(--trans-fast);
}

.bb-html-module a:not([class]):hover,
.bb-html-module a:not([class]):focus-visible,
.post-content a:not([class]):hover,
.post-content a:not([class]):focus-visible {
    color: var(--c-green-text);
    text-decoration-color: var(--c-green-text);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
}


/* ── FOCUS STATES ─────────────────────────────────────────── */

:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}


/* ── SKIP LINK ────────────────────────────────────────────── */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75em 1.5em;
    background: var(--c-slate-900);
    color: var(--c-white);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: top var(--trans-fast);
}

.skip-link:focus {
    top: 0;
}


/* ── TYPOGRAPHY ────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.15;
    color: var(--c-text-strong);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
h5 { font-size: var(--text-base); font-weight: 600; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.text-blue  { color: var(--c-blue-text); }
.text-green { color: var(--c-green-text); }
.text-muted { color: var(--c-text-muted); }
.text-white { color: var(--c-white); }

.label {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-green-text);
}


/* ── BUTTONS ───────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 0.9em 2em;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background var(--trans-fast), color var(--trans-fast),
                transform var(--trans-fast), box-shadow var(--trans-fast);
    white-space: nowrap;
    min-height: 48px;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    transition-duration: 0.08s;
}

.btn-primary {
    background: var(--c-blue);
    color: var(--c-white);
    box-shadow: 0 2px 8px rgba(0, 149, 219, 0.25);
}

.btn-primary:hover {
    background: var(--c-blue-dark);
    box-shadow: 0 6px 20px rgba(0, 149, 219, 0.3);
}

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

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

.btn-dark {
    background: var(--c-slate-900);
    color: var(--c-white);
}

.btn-dark:hover {
    background: var(--c-slate-800);
    box-shadow: var(--shadow-lg);
}

.btn-green {
    background: var(--c-green);
    color: var(--c-white);
}

.btn-green:hover {
    background: var(--c-green-dark);
}

.btn svg {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}

/* Text-style link button */
.btn-text {
    background: none;
    color: var(--c-text-muted);
    padding: 0;
    min-height: auto;
    font-weight: 500;
    gap: 0.4em;
    border-bottom: 1px solid var(--c-slate-300);
    border-radius: 0;
    padding-bottom: 0.15em;
}

.btn-text:hover {
    color: var(--c-blue-text);
    border-color: var(--c-blue-text);
    transform: none;
}

/* Hero: zweiter Button (btn-text) als Outline-Button, passend zum Primärbutton */
.hero-actions .btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 0.9em 2em;
    min-height: auto;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-white);
    background: rgba(10, 22, 40, 0.28);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: background var(--trans-fast), border-color var(--trans-fast), transform var(--trans-fast);
}

.hero-actions .btn-text:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--c-white);
    transform: translateY(-2px);
}


/* ── LAYOUT ────────────────────────────────────────────────── */

.site-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.site-main {
    flex: 1;
}

.section {
    padding: var(--space-xl) 0;
}

.section-lg {
    padding: var(--space-2xl) 0;
}

.section-inner {
    width: 100%;
    padding-inline: clamp(1rem, 3vw, 2rem);
}


/* ── HEADER ────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--c-white);
    transition: background var(--trans-base), box-shadow var(--trans-base),
                backdrop-filter var(--trans-base);
}

.site-header.scrolled {
    box-shadow: 0 1px 0 var(--c-border);
}

/* Transparent header on homepage hero */
.is-front-page .site-header {
    background: transparent;
    box-shadow: none;
}

.is-front-page .site-header.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--c-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1500px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo img,
.site-logo svg {
    height: clamp(56px, 7vw, 84px);
    width: auto;
    max-width: 300px;
    object-fit: contain;
    object-position: left center;
    max-height: 94px;
}

/* Dual logo: default (coloured) + white version */
.logo-white {
    display: none;
}

.is-front-page .logo-default {
    display: none;
}

.is-front-page .logo-white {
    display: block;
}

.is-front-page .site-header.scrolled .logo-default {
    display: block;
}

.is-front-page .site-header.scrolled .logo-white {
    display: none;
}


/* ── NAVIGATION ────────────────────────────────────────────── */

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a,
.nav-menu > li > span {
    display: flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.6em 0.9em;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--c-text);
    border-radius: var(--radius-sm);
    transition: color var(--trans-fast);
    white-space: nowrap;
    cursor: pointer;
    min-height: 44px;
    position: relative;
}

/* Green underline indicator on hover/active */
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: 0.9em;
    right: 0.9em;
    height: 3px;
    background: var(--c-green);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--trans-fast);
}

.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--c-text-strong);
}

/* White text on transparent header */
.is-front-page .nav-menu > li > a,
.is-front-page .nav-menu > li > span {
    color: rgba(255,255,255,0.85);
}

.is-front-page .nav-menu > li > a:hover,
.is-front-page .nav-menu > li.current-menu-item > a {
    color: var(--c-white);
}

.is-front-page .nav-menu > li > a::after {
    background: var(--c-green);
}

/* Revert to dark text when scrolled */
.is-front-page .site-header.scrolled .nav-menu > li > a,
.is-front-page .site-header.scrolled .nav-menu > li > span {
    color: var(--c-text);
}

.is-front-page .site-header.scrolled .nav-menu > li > a:hover,
.is-front-page .site-header.scrolled .nav-menu > li.current-menu-item > a {
    color: var(--c-text-strong);
}

.is-front-page .site-header.scrolled .nav-menu > li > a::after {
    background: var(--c-green);
}

/* Caret for parent items */
.nav-menu > li.menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-0.2em);
    transition: transform var(--trans-fast);
    margin-left: 0.3em;
    order: 1;
}

.nav-menu > li.menu-item-has-children:hover > a::before {
    transform: rotate(225deg) translateY(0em);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 260px;
    background: var(--c-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--c-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--trans-base), transform var(--trans-base),
                visibility var(--trans-base);
    z-index: 100;
    padding: 0.35rem;
}

.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    display: flex;
    align-items: center;
    padding: 0.6em 0.9em;
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--c-text);
    border-radius: var(--radius-sm);
    transition: color var(--trans-fast), background var(--trans-fast);
    min-height: 44px;
}

.nav-menu .sub-menu li a:hover,
.nav-menu .sub-menu li a:focus-visible,
.nav-menu .sub-menu li.current-menu-item a {
    color: var(--c-white);
    background: var(--c-green);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.15em;
    margin-left: var(--space-sm);
}

.lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2em;
    height: 2.2em;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--c-text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--trans-fast), background var(--trans-fast);
    text-transform: uppercase;
    min-width: 44px;
    min-height: 44px;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--c-blue);
    background: var(--c-blue-light);
}

/* White lang switcher on transparent header */
.is-front-page .lang-switcher a {
    color: rgba(255,255,255,0.6);
}

.is-front-page .lang-switcher a:hover,
.is-front-page .lang-switcher a.active {
    color: var(--c-white);
    background: rgba(255,255,255,0.15);
}

.is-front-page .site-header.scrolled .lang-switcher a {
    color: var(--c-text-muted);
}

.is-front-page .site-header.scrolled .lang-switcher a:hover,
.is-front-page .site-header.scrolled .lang-switcher a.active {
    color: var(--c-blue);
    background: var(--c-blue-light);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--c-text-strong);
    border-radius: 2px;
    transition: transform var(--trans-base), opacity var(--trans-base);
}

.is-front-page .nav-toggle span {
    background: var(--c-white);
}

.is-front-page .site-header.scrolled .nav-toggle span {
    background: var(--c-text-strong);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}


/* ── HERO ──────────────────────────────────────────────────── */

.hero {
    position: relative;
    width: 100%;
    min-height: clamp(560px, 85vh, 860px);
    margin-top: 0; /* transparent header overlaps */
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* IMPORTANT: This hero background image must be preserved */
    background-image: url('assets/images/steffen-abdichtungen-hero.webp');
    background-size: cover;
    background-position: center;
}

/* Cinematic overlay - dark left fade for text readability */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(6, 16, 32, 0.6) 0%, rgba(6, 16, 32, 0) 42%),
        linear-gradient(
            105deg,
            rgba(10, 22, 40, 0.75) 0%,
            rgba(10, 22, 40, 0.65) 42%,
            rgba(10, 22, 40, 0.45) 72%,
            rgba(10, 22, 40, 0.25) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-inline: clamp(1rem, 3vw, 2rem);
    padding-top: var(--header-h);
    padding-bottom: var(--space-xl);
    max-width: 1500px;
    margin-inline: auto;
    width: 100%;
}

.hero-content-inner {
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-green);
    margin-bottom: var(--space-md);
}

.hero-eyebrow::before {
    content: '';
    display: block;
    height: 2px;
    width: 2.5em;
    background: var(--c-green);
}

.hero h1 {
    color: var(--c-white);
    font-size: var(--text-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.hero-sub {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.88);
    margin-bottom: var(--space-lg);
    font-weight: 400;
    line-height: 1.6;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Accent bar at bottom of hero - subtle */
.hero-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-green) 100%);
    z-index: 3;
    opacity: 0.6;
}


/* ── SERVICES LIST (approved numbered list - premium execution) ── */

.services-section {
    padding: var(--space-2xl) 0;
    background: var(--c-bg);
}

.services-header {
    margin-bottom: var(--space-xl);
}

.services-header .label {
    margin-bottom: var(--space-xs);
    display: block;
}

.services-header h2 {
    font-size: var(--text-2xl);
    letter-spacing: -0.025em;
}

.services-list {
    width: 100%;
}

/* Service row - clean horizontal layout */
.service-row {
    display: grid;
    grid-template-columns: clamp(3.25rem, 5vw, 5rem) minmax(0, 34rem) minmax(300px, 1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    margin-inline: calc(-1 * clamp(1rem, 3vw, 2rem));
    padding-inline: clamp(1rem, 3vw, 2rem);
    border-top: 1px solid var(--c-border);
    text-decoration: none;
    color: inherit;
    transition: background var(--trans-base);
    position: relative;
}

.service-row:last-child {
    border-bottom: 1px solid var(--c-border);
}

/* Subtle hover background */
.service-row:hover {
    background: var(--c-slate-50);
}

/* Number - large, light, transitions on hover */
.service-num {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--c-slate-200);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    transition: color var(--trans-base), transform var(--trans-base);
}

.service-row:hover .service-num,
.service-row:focus-visible .service-num {
    color: var(--c-green);
    transform: translateX(calc(-0.3em));
}

/* Text block */
.service-text {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.service-text h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--c-text-strong);
    transition: color var(--trans-base);
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.service-row:hover .service-text h3,
.service-row:focus-visible .service-text h3 {
    color: var(--c-blue-text);
}

.service-text p {
    font-size: var(--text-base);
    color: var(--c-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: none;
}

/* Thumbnail - rounded, clips, subtle scale */
.service-thumb {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 3 / 2;
    max-height: clamp(200px, 22vw, 300px);
    width: 100%;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-slow);
}

.service-row:hover .service-thumb img {
    transform: scale(1.05);
}


/* ── CONTENT SECTIONS (homepage alternating) ───────────────── */

.feature-section {
    padding: var(--space-xl) 0;
}

.feature-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.feature-inner.reverse {
    direction: rtl;
}

.feature-inner.reverse > * {
    direction: ltr;
}

.feature-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-lg);
}

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

.feature-text .label {
    display: block;
    margin-bottom: var(--space-xs);
}

.feature-text h2 {
    margin-bottom: var(--space-sm);
}

.feature-text p {
    color: var(--c-text);
    margin-bottom: var(--space-sm);
}

.feature-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--c-border);
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--c-blue-text);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25em;
}


/* ── CTA BAND ──────────────────────────────────────────────── */

.cta-band {
    background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-dark) 100%);
    padding: var(--space-xl) 0;
    color: var(--c-white);
}

.cta-band .section-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
    max-width: 1500px;
    margin-inline: auto;
}

.cta-band-text {
    max-width: 560px;
}

.cta-band h2 {
    color: var(--c-white);
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.cta-band p {
    font-size: var(--text-base);
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
}

.cta-band .btn {
    flex-shrink: 0;
}


/* ── REFERENCES STRIP ──────────────────────────────────────── */

.ref-strip {
    background: var(--c-bg-alt);
    padding: var(--space-xl) 0;
}

.ref-strip h2 {
    margin-bottom: var(--space-lg);
}

/* Colour bar between CTA and footer */
.footer-colorbar {
    height: 3px;
    background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-green) 100%);
    opacity: 0.5;
}

/* ── FOOTER ────────────────────────────────────────────────── */

.site-footer {
    background: var(--c-slate-950);
    color: var(--c-slate-400);
    padding-top: var(--space-xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    max-width: 1500px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
    padding-bottom: var(--space-xl);
}

.footer-brand .site-logo img,
.footer-brand .site-logo svg {
    max-height: 66px;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
    color: var(--c-slate-400);  /* 7.4:1 on slate-950 */
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--c-slate-200);  /* 13.5:1 on slate-950 */
    margin-bottom: 0.4em;
    transition: color var(--trans-fast);
    min-height: 44px;
}

.footer-contact a:hover {
    color: var(--c-blue);
}

.footer-contact svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    color: var(--c-slate-400);  /* 7.4:1 on slate-950 */
}

.footer-col h4 {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--c-slate-200);  /* 13.5:1 on slate-950 */
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col ul li {
    margin-bottom: 0.25em;
}

.footer-col ul li a {
    font-size: var(--text-sm);
    color: var(--c-slate-400);  /* 7.4:1 on slate-950 */
    transition: color var(--trans-fast);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-col ul li a:hover {
    color: var(--c-white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-sm) clamp(1rem, 3vw, 2rem);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p,
.footer-bottom a {
    font-size: var(--text-xs);
    color: var(--c-slate-400);  /* 7.4:1 on slate-950 */
}

.footer-bottom a:hover {
    color: var(--c-white);
}

.footer-legal {
    display: flex;
    gap: var(--space-sm);
}

/* Footer-Menü aus WP-Menü: Spalten wie .footer-col
   (display: contents hebt die <li> in das .footer-top-Grid) */
.footer-menu {
    display: contents;
}

.footer-menu > li > a {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.25;
    color: var(--c-slate-200);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu .sub-menu li {
    margin-bottom: 0;
}

.footer-menu .sub-menu a {
    display: block;
    font-size: var(--text-sm);
    line-height: 1.35;
    padding: 0.28em 0;
    color: var(--c-slate-400);
    transition: color var(--trans-fast);
}

.footer-menu .sub-menu a:hover {
    color: var(--c-white);
}

/* Footer: mittlere Breiten (Tablet quer) auf zwei Spalten */
@media (min-width: 769px) and (max-width: 1000px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-lang {
    display: flex;
    gap: 0.25em;
}

.footer-lang a {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--c-slate-400);  /* 7.4:1 on slate-950 */
    text-transform: uppercase;
    padding: 0.25em 0.5em;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
    transition: color var(--trans-fast), border-color var(--trans-fast);
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-lang a:hover,
.footer-lang a.active {
    color: var(--c-white);
    border-color: rgba(255,255,255,0.4);
}


/* ── INNER PAGES (Beaver Builder) ──────────────────────────── */

.fl-builder-content .fl-row {
    margin-bottom: 0;
}


.page-content {
    padding: var(--space-xl) clamp(1rem, 3vw, 2rem);
}

.bb-html-module h2,
.fl-rich-text h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.05rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}

.bb-html-module h3,
.fl-rich-text h3 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}

.bb-html-module p,
.bb-html-module li,
.fl-rich-text p,
.fl-rich-text li {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--c-text);
}

.bb-html-module ul,
.bb-html-module ol,
.fl-rich-text ul,
.fl-rich-text ol {
    padding-left: 1.5em;
    margin-bottom: var(--space-sm);
    list-style: revert;
}

.bb-html-module ul li,
.bb-html-module ol li,
.fl-rich-text ul li,
.fl-rich-text ol li {
    margin-bottom: 0.35em;
}

.bb-html-module img,
.fl-rich-text img {
    border-radius: var(--radius-md);
    margin-block: var(--space-sm);
}

.bb-html-module .img-float-right {
    float: right;
    max-width: 45%;
    margin-left: var(--space-md);
    margin-bottom: var(--space-sm);
}

.bb-html-module .img-float-left {
    float: left;
    max-width: 45%;
    margin-right: var(--space-md);
    margin-bottom: var(--space-sm);
}

.bb-html-module .clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.info-box {
    background: var(--c-blue-light);
    border-left: 3px solid var(--c-blue);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-md);
    margin-block: var(--space-md);
}

.info-box.green {
    background: rgba(101,179,46,0.06);
    border-left-color: var(--c-green);
}

.info-box h4 {
    margin-bottom: 0.5em;
    color: var(--c-blue-text);
}

.info-box.green h4 {
    color: var(--c-green-dark);
}


/* ── UTILITIES ─────────────────────────────────────────────── */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }

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

.section-title {
    position: relative;
}


/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
}

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

    .feature-inner.reverse {
        direction: ltr;
    }

    .feature-img {
        aspect-ratio: 16 / 7;
    }

    .service-row {
        grid-template-columns: clamp(3rem, 5vw, 4rem) 1fr;
        gap: var(--space-sm);
    }

    .service-thumb {
        grid-column: 1 / -1;
        max-width: 360px;
        aspect-ratio: 16 / 9;
    }

    .cta-band .section-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-band-text {
        max-width: none;
    }
}

@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: auto;
        right: 0;
        bottom: 0;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        width: min(340px, 86vw);
        background: var(--c-white);
        box-shadow: -8px 0 24px -12px rgba(2, 6, 23, 0.4);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: var(--space-md);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--trans-base);
        z-index: 1001;
    }

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

    /* Reset transparent header styles in mobile menu */
    .is-front-page .site-nav .nav-menu > li > a,
    .is-front-page .site-nav .nav-menu > li > span {
        color: var(--c-text);
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-menu > li > a,
    .nav-menu > li > span {
        padding: 0.9em 0;
        border-bottom: 1px solid var(--c-border);
        border-radius: 0;
        font-size: var(--text-base);
    }

    .nav-menu > li > a::after {
        display: none;
    }

    .nav-menu > li.current-menu-item > a,
    .nav-menu > li.current-menu-ancestor > a {
        color: var(--c-green-text);
        font-weight: 700;
        border-left: 3px solid var(--c-green);
        padding-left: 0.7em;
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: var(--c-slate-50);
        padding: 0.25em 0 0.25em 1em;
        display: none;
    }

    .nav-menu > li.open > .sub-menu {
        display: block;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: var(--space-md);
        padding-top: var(--space-md);
        border-top: 1px solid var(--c-border);
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 72px;
    }

    /* Hero - centered on mobile */
    .hero {
        min-height: clamp(480px, 75vh, 640px);
        text-align: center;
    }

    .hero-content-inner {
        max-width: none;
    }

    .hero-sub {
        max-width: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-bg::after {
        background: linear-gradient(
            180deg,
            rgba(10, 22, 40, 0.5) 0%,
            rgba(10, 22, 40, 0.8) 100%
        );
    }

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

    .service-row {
        grid-template-columns: auto 1fr;
        gap: var(--space-sm);
        padding: var(--space-md) 0;
    }

    .service-num {
        font-size: var(--text-lg);
        min-width: 2.5rem;
    }

    .service-thumb {
        grid-column: 1 / -1;
        max-width: none;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 540px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .hero-actions .btn-text {
        align-self: center;
    }

    .feature-stats {
        flex-wrap: wrap;
    }
}


/* ── REDUCED MOTION ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── INNER CONTENT PAGES ──────────────────────────────────── */
/* Applies to all BB HTML module inner pages                   */


/* Page hero banner */
.page-hero {
    position: relative;
    width: 100%;
    min-height: clamp(180px, 28vw, 320px);
    overflow: hidden;
    margin-top: var(--header-h);
    display: flex;
}

.page-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero-overlay {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    background: linear-gradient(
        105deg,
        rgba(10, 22, 40, 0.82) 0%,
        rgba(10, 22, 40, 0.55) 55%,
        rgba(10, 22, 40, 0.25) 100%
    );
    display: flex;
    align-items: flex-end;
}

.page-hero-inner {
    padding: var(--space-md) clamp(1rem, 3vw, 2rem) var(--space-lg);
    max-width: 1500px;
    width: 100%;
    margin-inline: auto;
}

.page-hero-inner .label {
    color: var(--c-green);
    display: block;
    margin-bottom: 0.4em;
}

.page-hero-title {
    color: var(--c-white);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.55em;
    margin: 0;
}

.page-hero-icon {
    width: clamp(2.75rem, 4vw, 3.5rem);
    height: clamp(2.75rem, 4vw, 3.5rem);
    flex-shrink: 0;
}


/* Page body wrapper */
.page-body {
    padding: var(--space-md) 0 var(--space-xl);
}

.page-body-inner {
    max-width: 1500px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}


/* Lead text */
.bb-html-module .lead-text {
    font-size: clamp(1.15rem, 1.05rem + 0.55vw, 1.4rem);
    color: var(--c-slate-600);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    max-width: 60ch;
}

/* Heading kicker (small green eyebrow above a section heading) */
.kicker {
    display: block;
    color: var(--c-green-text);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}


/* PDF download cards */
.pdf-downloads {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: var(--space-lg);
}

.pdf-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1rem 1.25rem;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--trans-fast), box-shadow var(--trans-base), transform var(--trans-fast);
}

.pdf-card:hover {
    border-color: var(--c-slate-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pdf-card:active {
    transform: scale(0.99);
}

.pdf-card-icon {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    color: var(--c-green);
    background: color-mix(in srgb, var(--c-green) 12%, var(--c-white));
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: var(--c-green);
    color: var(--c-white);
    padding: 1px 6px;
    border-radius: 5px;
}

.pdf-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}

.pdf-card-text strong {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-text-strong);
}

.pdf-card-text span {
    font-size: var(--text-xs);
    color: var(--c-text-muted);
}

.pdf-card-arrow {
    flex-shrink: 0;
    color: var(--c-slate-400);
    transition: color var(--trans-fast), transform var(--trans-fast);
}

.pdf-card:hover .pdf-card-arrow {
    color: var(--c-green);
    transform: translateX(3px);
}


/* Content sections */
.content-section {
    padding: var(--space-md) 0;
}

.content-section:first-child {
    padding-top: 0;
}

.content-section-alt {
    background: var(--c-slate-50);
    margin-inline: calc(-1 * clamp(1rem, 3vw, 2rem));
    padding: var(--space-lg) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    margin-block: var(--space-sm);
}


/* Content images */
.content-img-link {
    display: block;
    text-decoration: none;
    position: relative;
    cursor: zoom-in;
}

.content-img-link:hover .content-img {
    transform: scale(1.02);
}

.content-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.08), 0 16px 34px -12px rgba(2, 6, 23, 0.28);
    transition: transform var(--trans-slow), box-shadow var(--trans-base);
}

.img-caption {
    display: block;
    margin-top: 0.5rem;
    font-size: var(--text-xs);
    color: var(--c-text-muted);
    line-height: 1.4;
}

/* Float images left/right within text flow */
.content-float-right {
    float: right;
    width: clamp(220px, 40%, 380px);
    margin-left: var(--space-md);
    margin-bottom: var(--space-sm);
}

.content-float-left {
    float: left;
    width: clamp(220px, 40%, 380px);
    margin-right: var(--space-md);
    margin-bottom: var(--space-sm);
}

/* Wide image - full column width */
.content-img-wide {
    margin-top: var(--space-md);
    max-height: 360px;
}

.content-img-wide .content-img {
    max-height: 360px;
}

/* Full-width image (used in alt sections) */
.content-img-full {
    margin-top: var(--space-md);
    max-height: 300px;
}

.content-img-full .content-img {
    max-height: 300px;
}


/* Two-column text + image layout (editorial split) */
.content-two-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
}

/* Reversed: image column first */
.content-two-col--rev > *:first-child {
    order: 2;
}

/* Keep the split image a consistent landscape crop, whatever the source ratio */
.content-two-col .content-img {
    aspect-ratio: 4 / 3;
    height: auto;
}

/* Spec / technical-data table */
.spec-table {
    max-width: 640px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.spec-table > div {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 0.7rem 1.1rem;
}

.spec-table > div:nth-child(odd) {
    background: var(--c-slate-50);
}

.spec-table dt {
    color: var(--c-text-muted);
}

.spec-table b {
    color: var(--c-text-strong);
    font-weight: 600;
}


/* Two-column list grid */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}


/* Styled bullet list */
.styled-list,
.bb-html-module ul.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.styled-list li {
    font-size: var(--text-sm);
    color: var(--c-text);
    line-height: 1.5;
    padding-left: 2em;
    position: relative;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 1.4em;
    height: 1.4em;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--c-green) 14%, var(--c-white));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365B32E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.8em;
    flex-shrink: 0;
}


/* Product trio */
.product-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.product-card {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--c-white);
    transition: box-shadow var(--trans-base), transform var(--trans-base);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card .content-img-link {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--c-border);
    aspect-ratio: 4 / 3;
    display: block;
}

.product-card .content-img {
    aspect-ratio: 4 / 3;
}

.product-card h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-text-strong);
    padding: 0.75rem 1rem 0.25rem;
}

.product-card p {
    font-size: var(--text-xs);
    color: var(--c-text-muted);
    padding: 0 1rem 0.75rem;
    margin: 0;
    line-height: 1.5;
}


/* Praxisbeispiele */
.example-block {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--c-border);
}

.example-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.example-block h3 {
    font-size: var(--text-md);
    color: var(--c-text-strong);
    margin-bottom: var(--space-xs);
}

.example-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.example-gallery .content-img-link {
    aspect-ratio: 4 / 3;
}

.example-gallery .content-img {
    aspect-ratio: 4 / 3;
}

.example-gallery--single {
    grid-template-columns: minmax(200px, 420px);
}

.example-gallery .content-img-link {
    aspect-ratio: 4 / 3;
    min-width: 0;
}

.example-gallery .content-img-link .content-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 400px) {
    .page-hero {
        min-height: clamp(180px, 55vw, 280px);
    }

    .page-hero-inner {
        padding-top: var(--space-sm);
        padding-bottom: var(--space-md);
    }

    .page-hero-inner .label {
        font-size: var(--text-xs);
        margin-bottom: 0.4em;
    }

    .page-hero-title {
        font-size: 1.05rem;
        line-height: 1.25;
    }

    .page-hero-icon {
        width: 1.9rem;
        height: 1.9rem;
    }
}

/* ── INNER PAGES RESPONSIVE ───────────────────────────────── */

@media (max-width: 768px) {
    .page-hero {
        min-height: clamp(150px, 42vw, 260px);
    }

    .page-hero-title {
        font-size: var(--text-md);
        line-height: 1.2;
    }

    .page-hero-icon {
        width: clamp(2rem, 6vw, 2.5rem);
        height: clamp(2rem, 6vw, 2.5rem);
    }

    .content-float-right,
    .content-float-left {
        float: none;
        width: 100%;
        margin: 0 0 var(--space-sm) 0;
    }

    .content-two-col,
    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .product-trio {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-trio {
        grid-template-columns: 1fr;
    }

    .example-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdf-downloads {
        gap: 0.5rem;
    }
}

@media (max-width: 400px) {
    .example-gallery {
        grid-template-columns: 1fr;
    }
}


/* ── IMAGE LIGHTBOX ───────────────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: color-mix(in srgb, var(--c-slate-950) 92%, transparent);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--trans-base), visibility var(--trans-base);
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    max-width: min(1100px, 92vw);
    max-height: 90vh;
    transform: scale(0.97);
    transition: transform var(--trans-base);
}

.lightbox.open .lightbox__figure {
    transform: scale(1);
}

.lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox__caption {
    margin-top: var(--space-xs);
    color: var(--c-slate-300);
    font-size: var(--text-xs);
    text-align: center;
    line-height: 1.4;
}

.lightbox__close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--c-white);
    cursor: pointer;
    transition: background var(--trans-fast);
}

.lightbox__close:hover {
    background: color-mix(in srgb, var(--c-white) 15%, transparent);
}

.lightbox__close svg {
    width: 26px;
    height: 26px;
}


.lightbox__prev,
.lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: var(--c-white);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--trans-fast);
    z-index: 10000;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox__prev { left: var(--space-md); }
.lightbox__next { right: var(--space-md); }

.lightbox__prev svg,
.lightbox__next svg {
    width: 24px;
    height: 24px;
}

/* ── VIDEO EMBED (base) ───────────────────────────────────── */

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-top: var(--space-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--c-border);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Multi-video grid (2+ videos side by side) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    align-items: stretch;
}

.video-grid > * {
    display: flex;
    flex-direction: column;
}

/* Push the video to the bottom of each cell so all videos align,
   regardless of how long the text above them is */
.video-grid .video-embed {
    margin-top: auto;
}

.video-grid--single {
    grid-template-columns: 1fr;
    max-width: 640px;
}

/* Single-video feature: video left, title + text right, on a grey band
   (matches koester.lu single-video layout) */
.video-feature {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.video-feature .video-embed {
    margin-top: 0;
    width: 100%;
}

.video-feature-text h3 {
    color: var(--c-green-text);
    margin-bottom: var(--space-xs);
}

.video-feature-text p {
    color: var(--c-text);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .video-feature {
        grid-template-columns: 1fr;
    }
}
/* ── REFERENCE CARDS (Referenzen index) ───────────────────── */

.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.ref-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--c-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.08), 0 16px 34px -12px rgba(2, 6, 23, 0.28);
    transition: transform var(--trans-fast), box-shadow var(--trans-base);
}

.ref-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.10), 0 26px 48px -14px rgba(2, 6, 23, 0.34);
}

.ref-card__img {
    aspect-ratio: 3 / 2;
    width: 100%;
    object-fit: cover;
    display: block;
    background: var(--c-slate-100);
}

.ref-card__body {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.ref-card__meta {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-green-text);
}

.ref-card__title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--c-text-strong);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
}

.ref-card__loc {
    font-size: var(--text-sm);
    color: var(--c-text-muted);
}


/* ── CASE STUDY (Referenz-Detailseiten) ───────────────────── */

/* Fact band */
.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--c-slate-50);
    border-radius: var(--radius-lg);
    margin: var(--space-sm) 0 var(--space-lg);
}

.case-meta > div {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.case-meta dt {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-green-text);
}

.case-meta dd {
    margin: 0;
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--c-text-strong);
    line-height: 1.2;
}

/* Numbered vertical timeline */
.bb-html-module ol.case-timeline,
.case-timeline {
    list-style: none;
    padding-left: 0;
    margin: var(--space-sm) 0 0;
    counter-reset: casestep;
    display: grid;
    gap: var(--space-md);
    max-width: 760px;
}

.case-timeline li {
    position: relative;
    padding-left: 3.5rem;
    color: var(--c-text);
    line-height: 1.6;
}

.case-timeline li::before {
    counter-increment: casestep;
    content: counter(casestep);
    position: absolute;
    left: 0;
    top: -0.15em;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--c-green);
    color: var(--c-white);
    font-weight: 700;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-timeline li::after {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 2.2rem;
    bottom: calc(-1 * var(--space-md));
    width: 2px;
    background: var(--c-slate-200);
    transform: translateX(-1px);
}

.case-timeline li:last-child::after {
    display: none;
}

/* Mosaic gallery */
.case-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.case-mosaic a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.08), 0 14px 30px -14px rgba(2, 6, 23, 0.24);
}

.case-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--trans-slow);
}

.case-mosaic a:hover img {
    transform: scale(1.05);
}

.case-mosaic a:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.case-mosaic a:nth-child(4) {
    grid-column: span 2;
}

@media (max-width: 700px) {
    .case-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
    .case-mosaic a:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    .case-mosaic a:nth-child(4) {
        grid-column: span 1;
    }
}


/* ── POSTS (Aktuell / Beiträge) ───────────────────────────── */

.post-content > * + * {
    margin-top: var(--space-sm);
}

.post-content h2 {
    margin-top: var(--space-md);
}

.post-content h3 {
    margin-top: var(--space-md);
}

.post-back {
    margin-top: var(--space-lg);
}

.post-back a {
    color: var(--c-green-text);
    font-weight: 600;
    text-decoration: none;
}

.post-back a:hover {
    text-decoration: underline;
}

.pagination {
    margin-top: var(--space-lg);
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.6rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    color: var(--c-text);
    text-decoration: none;
    transition: border-color var(--trans-fast), background var(--trans-fast), color var(--trans-fast);
}

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

.page-numbers:hover:not(.current) {
    border-color: var(--c-slate-300);
}

/* Kompakter Hero für Beiträge (ohne Foto) */
.page-hero--compact {
    height: auto;
    background: var(--c-slate-900);
}

.page-hero--compact .page-hero-overlay {
    position: static;
    background: none;
    display: block;
}

/* Beitragsbild im Artikel (Hochformat-freundlich, rechts umflossen) */
.post-figure {
    float: right;
    width: clamp(220px, 38%, 420px);
    margin: 0 0 var(--space-sm) var(--space-md);
}

.post-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.08), 0 16px 34px -12px rgba(2, 6, 23, 0.28);
}

@media (max-width: 700px) {
    .post-figure {
        float: none;
        width: 100%;
        margin: 0 0 var(--space-sm);
    }
}

/* ── WPFORMS ───────────────────────────────────────────────── */

.wpforms-submit-container .wpforms-submit,
button.wpforms-submit {
    background: var(--c-blue) !important;
    background-color: var(--c-blue) !important;
    color: var(--c-white) !important;
    font-family: var(--font-base) !important;
    font-size: var(--text-sm) !important;
    font-weight: 600 !important;
    padding: 0.9em 2em !important;
    min-height: 48px !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 2px 8px rgba(0, 149, 219, 0.25) !important;
    transition: background var(--trans-fast), transform var(--trans-fast), box-shadow var(--trans-fast) !important;
    cursor: pointer !important;
}

.wpforms-submit-container .wpforms-submit:hover,
button.wpforms-submit:hover {
    background: var(--c-blue-dark) !important;
    background-color: var(--c-blue-dark) !important;
    box-shadow: 0 6px 20px rgba(0, 149, 219, 0.3) !important;
    transform: translateY(-2px) !important;
}

.wpforms-submit-container .wpforms-submit:active,
button.wpforms-submit:active {
    transform: translateY(0) !important;
}

/* === SECTION: 404 === */
.error-404 {
    max-width: 60ch;
}

.error-404__code {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--c-green);
    margin: 0 0 var(--space-sm);
}
