/* ==========================================================================
   Rieker Energie — Main Stylesheet
   1:1 Nachbau der WordPress-Vorlage
   Font: Readex Pro | Farben: #24B37E (Grün), #0D1E44 (Navy), #EEF2F6 (Grau)
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, DSGVO-konform) ---------- */
@font-face {
    font-family: 'Readex Pro';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/readex-pro-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Readex Pro';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/readex-pro-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Lazy-Background Placeholder (bis IntersectionObserver triggert) */
.lazy-bg {
    background-color: #EEF2F6;
    background-size: cover;
    background-position: center;
}

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #24B37E;
    --color-primary-dark: #1a9468;
    --color-navy: #0D1E44;
    --color-navy-light: #112552;
    --color-white: #FFFFFF;
    --color-bg-light: #EEF2F6;
    --color-bg-gray: #F5F7FA;
    --color-text: #242E41;
    --color-text-light: #606060;
    --color-border: #EAEAEA;
    --font-family: 'Readex Pro', sans-serif;
    --font-size-sm: 13px;
    --font-size-base: 16px;
    --font-size-md: 20px;
    --font-size-lg: 36px;
    --font-size-xl: 42px;
    --font-size-xxl: 54px;
    --container-width: 1200px;
    --container-wide: 1400px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: #FAFAFA;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-navy);
}

h1 { font-size: var(--font-size-xxl); letter-spacing: -0.3px; }
h2 { font-size: var(--font-size-xl); letter-spacing: -0.3px; }
h3 { font-size: var(--font-size-lg); letter-spacing: -0.3px; }
h4 { font-size: var(--font-size-md); }

p {
    margin-bottom: 1em;
    line-height: 1.7;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 8px;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-white {
    background: #FAFAFA;
    color: var(--color-navy);
}

.btn-white:hover {
    background: var(--color-bg-light);
}

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

.btn-navy:hover {
    background: var(--color-navy-light);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 30px;
    transition: var(--transition);
}

.header-container {
    max-width: calc(var(--container-width) - 60px);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    background: rgba(13, 30, 68, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    border: 1px solid rgba(36, 179, 126, 0.35);
    color: var(--color-white);
}

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

.logo-img {
    height: 40px;
    width: auto;
}

/* (Navigation is now popup-overlay based, no horizontal nav bar) */

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: inherit;
    transition: var(--transition);
}

.social-links a svg {
    width: 16px;
    height: 16px;
}

.social-links a:hover {
    opacity: 0.7;
}

/* Header Separator */
.header-separator {
    width: 1px;
    height: 24px;
    background: var(--color-primary);
    opacity: 0.5;
}

/* Menu Toggle Button (popup trigger, like original) */
.menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle-btn:hover {
    background: var(--color-primary-dark);
}

/* ---------- Navigation Overlay (Card-Dropdown wie Original) ---------- */
.nav-toggle-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-overlay {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 110px);
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top right;
    transition:
        opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0.36s;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s;
}

.nav-overlay-inner {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-search {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    background: #F6F7F8;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nav-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(36, 179, 126, 0.12);
}
.nav-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--color-navy);
    outline: none;
    min-width: 0;
}
.nav-search-input::placeholder { color: var(--color-text-light); }
.nav-search-btn {
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.nav-search-btn:hover { background: var(--color-primary); }

.nav-overlay-menu > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.nav-overlay-menu > ul > li {
    opacity: 0;
}

.nav-overlay.open .nav-overlay-menu > ul > li {
    animation: navItemIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-overlay.open .nav-overlay-menu > ul > li:nth-child(1)  { animation-delay: 0.05s; }
.nav-overlay.open .nav-overlay-menu > ul > li:nth-child(2)  { animation-delay: 0.08s; }
.nav-overlay.open .nav-overlay-menu > ul > li:nth-child(3)  { animation-delay: 0.11s; }
.nav-overlay.open .nav-overlay-menu > ul > li:nth-child(4)  { animation-delay: 0.14s; }
.nav-overlay.open .nav-overlay-menu > ul > li:nth-child(5)  { animation-delay: 0.17s; }
.nav-overlay.open .nav-overlay-menu > ul > li:nth-child(6)  { animation-delay: 0.20s; }
.nav-overlay.open .nav-overlay-menu > ul > li:nth-child(7)  { animation-delay: 0.23s; }
.nav-overlay.open .nav-overlay-menu > ul > li:nth-child(8)  { animation-delay: 0.26s; }
.nav-overlay.open .nav-overlay-menu > ul > li:nth-child(9)  { animation-delay: 0.29s; }

.nav-overlay-menu > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-overlay-menu > ul > li > a:hover {
    background: rgba(13, 30, 68, 0.05);
}

.nav-overlay-menu > ul > li > a.active {
    background: var(--color-navy);
    color: var(--color-white);
}

.submenu-caret {
    flex-shrink: 0;
    opacity: 0.6;
    padding: 6px;
    box-sizing: content-box;
    margin: -6px -8px -6px 0;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.has-submenu.open > a .submenu-caret {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding: 4px 0 4px 14px;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
}

.has-submenu.open .submenu {
    display: flex;
}

.submenu li a {
    display: block;
    padding: 7px 14px;
    font-size: 14px;
    color: var(--color-text-light);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.submenu li a:hover {
    background: rgba(13, 30, 68, 0.04);
    color: var(--color-navy);
}

.submenu li a.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Overlay backdrop (dezent, bei Card-Dropdown nur zum Klick-Wegschliessen)
   z-index liegt unter .site-header (1000) damit das Panel im Header klickbar bleibt */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 30, 68, 0.2);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.22s ease, visibility 0s;
}

/* ---------- Hero Sections ---------- */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Spotlight-Layer — gilt für alle Hero-Typen.
   Greift nur, wenn der Hero einen Navy-Hintergrund hat (also nicht bei späteren
   Light-Heros falls jemand sowas baut). */
.hero-page::before,
.hero-home::before,
.hero-projekt-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 350px at 50% 35%, rgba(0, 169, 92, 0.20), transparent 65%),
        radial-gradient(ellipse 1400px 200px at 50% 100%, rgba(255, 255, 255, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Inhalt über die Spotlight-Layer heben */
.hero > .container,
.hero > * {
    position: relative;
    z-index: 1;
}

.hero-home {
    background: linear-gradient(to bottom, var(--color-navy) 85%, #FAFAFA 85%);
    color: var(--color-white);
    padding: 100px 0 60px;
    text-align: center;
}

.hero-home h1 {
    color: var(--color-white);
    font-size: var(--font-size-xxl);
    font-weight: 600;
    max-width: 1100px;
    margin: 0 auto 16px;
}

.hero-tall {
    padding-top: 200px;
    padding-bottom: 180px;
}

/* Bei hero-tall (Text-only-Seiten ohne Bild) den 85%-Schnitt von hero-home
   neutralisieren — sonst zeigt sich unten ein heller Streifen. */
.hero-home.hero-tall {
    background: var(--color-navy);
}

.text-green {
    color: var(--color-primary);
}

.hero-projekte .hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
}

.hero-home .hero-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-md);
    font-weight: 400;
    margin-bottom: 0;
}

.hero-home .hero-image {
    margin-top: 40px;
}

.hero-home .hero-image img,
.hero-home .hero-image video {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.15);
}

.hero-page {
    background: linear-gradient(103.51deg, #0D1E44 25.62%, #112552 36.89%);
    color: var(--color-white);
    text-align: center;
    padding: 160px 0 60px;
}

.hero-page h1 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.hero-page p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
}

.hero-banner-image {
    margin-top: 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-banner-image img {
    width: 100%;
    display: block;
}

/* ---------- Sections ---------- */
.section {
    padding: 40px 0;
    background: #FAFAFA;
}


.section-heading {
    text-align: center;
    margin-bottom: 32px;
}

.section-cta {
    text-align: center;
    margin-top: 32px;
}

/* DATA Crane Card */
.crane-card {
    background: var(--color-navy);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.crane-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crane-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.crane-tab span {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.crane-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.crane-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.crane-content {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    min-height: 320px;
}

.crane-panel {
    display: none;
}

.crane-panel.active {
    display: block;
}

.crane-desc {
    color: var(--color-navy);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.crane-features {
    list-style: none;
}

.crane-features li {
    position: relative;
    padding: 6px 0 6px 37px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--color-navy);
}

.crane-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 25px;
    height: 25px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='26' viewBox='0 0 25 26' fill='none'%3E%3Ccircle cx='12.5' cy='13.4277' r='12.5' fill='%2324B37E' fill-opacity='0.15'/%3E%3Cpath d='M18 10.5943L10 18.5943L6.33337 14.9276L7.27337 13.9876L10 16.7076L17.06 9.6543L18 10.5943Z' fill='%2324B37E'/%3E%3C/svg%3E") no-repeat center / contain;
}

.crane-logo {
    display: block;
    margin: 24px 0 0 auto;
    width: 180px;
}

.crane-cta {
    text-align: center;
    margin-top: 24px;
    grid-column: 1 / -1;
}

/* Zertifizierungs-Tabs (Nachhaltigkeitszertifizierung) */
.cert-section .container {
    background: url('/storage/images/nachhaltig-bg-grid.svg') no-repeat top right;
    background-size: min(700px, 60%) auto;
}

.cert-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    justify-content: center;
}

.cert-tab {
    padding: 14px 28px;
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    border-radius: 999px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cert-tab:hover {
    background: var(--color-navy-light);
}

.cert-tab.active {
    background: var(--color-primary);
}

.cert-panel {
    display: none;
}

.cert-panel.active {
    display: block;
}

.cert-panel h2 {
    color: var(--color-navy);
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cert-subtitle {
    color: var(--color-text-light);
    font-size: 18px;
    margin-bottom: 24px;
}

.cert-panel p {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.cert-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 32px 0;
}

.cert-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 40px;
    margin-top: 16px;
}

.cert-benefit {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-benefit-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.cert-benefit h3 {
    color: var(--color-navy);
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.cert-benefit p {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.cert-empty {
    padding: 64px 16px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 16px;
}

.cert-services {
    margin-top: 80px;
}

.cert-services h2 {
    color: var(--color-navy);
    font-size: 44px;
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 16px;
}

.cert-services-intro {
    color: var(--color-text-light);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 720px;
}

.cert-services .crane-card {
    margin-top: 0;
}

.cert-services .crane-panel h3 {
    color: var(--color-navy);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.cert-anwendungsfelder {
    margin-top: 80px;
    background: url('/storage/images/nachhaltig-anwendung-bg.webp') no-repeat center / cover;
    border-radius: 24px;
    padding: 240px 80px 80px;
}

.cert-anwendungsfelder-card {
    background: var(--color-white);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.cert-anwendungsfelder-card h2 {
    color: var(--color-navy);
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

.cert-anwendungen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.cert-anwendung {
    text-align: center;
}

.cert-anwendung img {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
}

.cert-anwendung h3 {
    color: var(--color-primary);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cert-anwendung p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.6;
}

.cert-fuerwen {
    margin-top: 96px;
    text-align: center;
}

.cert-fuerwen > h2 {
    color: var(--color-navy);
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 64px;
}

.cert-fuerwen-timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.cert-fuerwen-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary);
    transform: translateX(-50%);
}

.cert-fuerwen-item {
    position: relative;
    width: 50%;
    padding: 24px 56px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-fuerwen-item--left {
    margin-right: 50%;
    padding-right: 56px;
    align-items: flex-end;
    text-align: right;
}

.cert-fuerwen-item--right {
    margin-left: 50%;
    padding-left: 56px;
    align-items: flex-start;
    text-align: left;
}

.cert-fuerwen-num {
    position: absolute;
    top: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    font-size: 16px;
    font-weight: 700;
    z-index: 1;
}

.cert-fuerwen-item--left .cert-fuerwen-num {
    right: -20px;
}

.cert-fuerwen-item--right .cert-fuerwen-num {
    left: -20px;
}

.cert-fuerwen-icon {
    width: 40px;
    height: 40px;
}

.cert-fuerwen-item h3 {
    color: var(--color-navy);
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.cert-fuerwen-item p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cert-partner {
    margin-top: 96px;
    background: var(--color-navy) url('/storage/images/nachhaltig-partner-bg.webp') no-repeat center / cover;
    border-radius: 24px;
    padding: 72px 48px;
    text-align: center;
    color: var(--color-white);
}

.cert-partner h2 {
    color: var(--color-white);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 32px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.cert-partner-lead {
    color: var(--color-primary);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 auto 32px;
    max-width: 760px;
}

.cert-partner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    margin: 0 auto 20px;
    max-width: 680px;
}

.cert-partner-cta {
    color: var(--color-white);
    font-size: 17px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.cert-partner .btn {
    margin-top: 28px;
}

.cert-faq {
    margin-top: 96px;
}

@media (max-width: 767px) {
    .cert-faq {
        margin-top: 56px;
    }
}

@media (max-width: 1200px) {
    .cert-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-panel h2 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .cert-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .cert-tab {
        padding: 14px 20px;
        font-size: 15px;
        text-align: center;
    }

    .cert-benefits {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cert-panel h2 {
        font-size: 26px;
    }

    .cert-services {
        margin-top: 56px;
    }

    .cert-services h2 {
        font-size: 28px;
    }

    .cert-services-intro {
        font-size: 16px;
    }

    .cert-services .crane-panel h3 {
        font-size: 24px;
    }

    .cert-anwendungsfelder {
        margin-top: 56px;
        padding: 120px 16px 32px;
        border-radius: 16px;
    }

    .cert-anwendungsfelder-card {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .cert-anwendungsfelder-card h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .cert-anwendungen {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 1200px) and (min-width: 768px) {
    .cert-anwendungen {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .cert-fuerwen {
        margin-top: 56px;
    }

    .cert-fuerwen > h2 {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .cert-fuerwen-timeline::before {
        left: 20px;
    }

    .cert-fuerwen-item {
        width: 100%;
        margin: 0;
        padding: 16px 16px 16px 56px;
        align-items: flex-start;
        text-align: left;
    }

    .cert-fuerwen-item--left .cert-fuerwen-num,
    .cert-fuerwen-item--right .cert-fuerwen-num {
        left: 0;
        right: auto;
    }

    .cert-partner {
        margin-top: 56px;
        padding: 40px 20px;
        border-radius: 16px;
    }

    .cert-partner h2 {
        font-size: 24px;
    }

    .cert-partner-lead {
        font-size: 16px;
    }

    .cert-partner p {
        font-size: 15px;
    }
}

/* Energieberatung — Leistungen-Cards */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.leistungs-card:nth-child(4n+1) { grid-column: span 7; }
.leistungs-card:nth-child(4n+2) { grid-column: span 5; }
.leistungs-card:nth-child(4n+3) { grid-column: span 4; }
.leistungs-card:nth-child(4n+4) { grid-column: span 8; }
.leistungs-card--full { grid-column: span 12 !important; }

.leistungs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 24px;
    padding: 32px;
    min-height: 360px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leistungs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 30, 68, 0.08);
}

.leistungs-card-bg {
    position: absolute;
    inset: 0 0 0 auto;
    width: 55%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent 0%, transparent 25%, black 60%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 25%, black 60%);
    pointer-events: none;
    z-index: 0;
}

.leistungs-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 50%;
}

.leistungs-card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.leistungs-card-title {
    color: var(--color-navy);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.leistungs-card-desc {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.leistungs-card-cta {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    margin-top: 32px;
    align-self: flex-start;
}

@media (max-width: 767px) {
    .leistungen-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .leistungs-card,
    .leistungs-card--full {
        grid-column: 1 / -1 !important;
    }

    .leistungs-card {
        min-height: 280px;
        padding: 24px;
    }

    .leistungs-card-content {
        max-width: 65%;
    }

    .leistungs-card-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .leistungs-card-title {
        font-size: 18px;
    }

    .leistungs-card-cta {
        width: 48px;
        height: 48px;
        margin-top: 20px;
    }
}

/* Energieberatung-Unterseiten — Intro */
.foerd-intro h2 {
    color: var(--color-navy);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.foerd-intro p {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.foerd-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .foerd-intro h2 {
        font-size: 22px;
    }
}

/* Foerdermittel — Warum-Sektion mit 6 Benefits */
.foerd-warum-card {
    background: var(--color-bg-light);
    border-radius: 24px;
    padding: 56px 48px;
    margin-top: 80px;
}

.foerd-warum-head h2 {
    color: var(--color-navy);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 24px;
    max-width: 820px;
}

.foerd-warum-head p {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.foerd-warum-lead {
    font-weight: 600;
    color: var(--color-navy) !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

.foerd-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.foerd-benefit {
    position: relative;
    padding: 32px 24px 24px;
    background: var(--color-white);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foerd-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 30, 68, 0.08);
}

.foerd-benefit-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--color-bg-light);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.foerd-benefit h3 {
    color: var(--color-navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.foerd-benefit p {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 1200px) {
    .foerd-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .foerd-warum-card {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .foerd-warum-head h2 {
        font-size: 24px;
    }

    .foerd-benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

    .foerd-benefit {
        padding: 24px 20px;
    }
}

/* Foerdermittel — Callout (Highlight-Block, z.B. DENA) */
.foerd-callout {
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 16px;
    padding: 32px 40px;
    margin-top: 80px;
}

.foerd-callout h3 {
    color: var(--color-navy);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.foerd-callout p {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 767px) {
    .foerd-callout {
        padding: 24px 20px;
        margin-top: 56px;
    }

    .foerd-callout h3 {
        font-size: 18px;
    }
}

/* Foerdermittel — Anwendungsfaelle (Navy Card) */
.foerd-anwendungen-card {
    background: var(--color-navy);
    border-radius: 24px;
    padding: 64px 48px;
}

.foerd-anwendungen-title {
    color: var(--color-white);
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
}

.foerd-anwendungen-title .text-green {
    color: var(--color-primary);
}

.foerd-anwendungen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.foerd-anwendung {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--color-navy-light);
    border-radius: 16px;
    padding: 24px 28px;
}

.foerd-anwendung-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.foerd-anwendung h3 {
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.foerd-anwendung p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 767px) {
    .foerd-anwendungen-card {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .foerd-anwendungen-title {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .foerd-anwendungen-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .foerd-anwendung {
        padding: 20px;
    }
}

/* Branchen Section */
.branchen-intro {
    color: var(--color-text-light);
    max-width: 700px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.branchen-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.bento-cell {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.branchen-bento .bento-cell:nth-child(1) { grid-area: 1 / 1; }
.branchen-bento .bento-cell:nth-child(2) { grid-area: 1 / 2 / 3 / 3; }
.branchen-bento .bento-cell:nth-child(3) { grid-area: 1 / 3; }
.branchen-bento .bento-cell:nth-child(4) { grid-area: 2 / 1; }
.branchen-bento .bento-cell:nth-child(5) { grid-area: 2 / 3; }

.bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bento-photo-card {
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
}

.bento-photo-overlay {
    padding: 28px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(13, 30, 68, 0.5);
}

.bento-photo-overlay h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.bento-photo-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.7;
}

.bento-text {
    background: #FFFFFF;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.bento-green {
    background: var(--color-primary);
}

.bento-green p {
    color: rgba(255, 255, 255, 0.9);
}

.bento-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.text-yellow {
    color: #E8C840;
}

.bento-text p {
    font-size: 15px;
    line-height: 1.7;
}

/* Branchen Cards Grid */
.branchen-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.branchen-card-item {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: background 0.3s, color 0.3s;
}

.branchen-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 12px;
    transition: filter 0.3s;
}

.branchen-card-item h3 {
    margin-bottom: 12px;
    color: var(--color-navy);
    transition: color 0.3s;
}

.branchen-card-item p {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.7;
    transition: color 0.3s;
}

.branchen-card-item:hover {
    background: var(--color-primary);
}

.branchen-card-item:hover h3 {
    color: var(--color-white);
}

.branchen-card-item:hover p {
    color: rgba(255, 255, 255, 0.9);
}


/* Certifications Marquee */
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.certifications-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.certifications-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 60px;
    width: max-content;
    min-width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.certifications-track:hover {
    animation-play-state: paused;
}

.certification-item {
    flex-shrink: 0;
}

.certification-item img {
    height: 60px;
    width: auto;
    display: block;
    transition: opacity 0.3s;
}

.certification-item--small img {
    height: 45px;
}

.certification-item img:hover {
    opacity: 0.75;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-heading {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 40px;
}

.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.faq-tab {
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--color-navy);
    background: transparent;
    color: var(--color-navy);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
    line-height: 1.4;
}

.faq-tab.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.faq-tab:hover:not(.active) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.faq-category {
    display: none;
}

.faq-category.active {
    display: block;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #F5F7FA;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.faq-question-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.3s;
}

.faq-item.active .faq-icon {
    background: var(--color-primary);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0 0 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 12px;
}

.faq-answer ul:last-child {
    margin-bottom: 0;
}

.faq-answer ul li {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .faq-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-tab {
        text-align: center;
    }

    .faq-heading {
        font-size: 1.75rem;
    }
}

/* Kennzahlen Grid */
.section-heading-sub {
    text-align: center;
    color: var(--color-text-light);
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto 36px;
}

.kennzahlen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.kennzahlen-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
}

.kennzahlen-overlay {
    width: 100%;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(13, 30, 68, 0.85) 60%, transparent);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.kennzahlen-overlay p {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Blog Home Grid */
.blog-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.blog-home-card {
    display: flex;
    align-items: flex-end;
    min-height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.blog-home-card:hover {
    transform: scale(1.02);
}

.blog-home-overlay {
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(13, 30, 68, 0.9) 60%, transparent);
}

.blog-home-tag {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.blog-home-overlay h3 {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-home-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Kontakt CTA */
.kontakt-cta {
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    overflow: visible;
}

.kontakt-cta-content {
    max-width: 60%;
}

.kontakt-cta-content h3 {
    color: var(--color-white);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.kontakt-cta-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 24px;
}

.btn-navy {
    display: inline-block;
    background: var(--color-navy);
    color: var(--color-white);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.btn-navy:hover {
    background: #0a1733;
}

.kontakt-cta-img {
    position: absolute;
    right: 20px;
    bottom: 0;
    height: 120%;
}

.kontakt-cta-img img {
    height: 100%;
    width: auto;
}

.kontakt-cta-img img {
    width: 100%;
    display: block;
}

/* IB Rieker CTA Card */
.cta-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
}

.cta-heading {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Section Light als Card */
.section-light-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-xl);
    padding: 48px;
}

.section-light {
    background: var(--color-bg-light);
}

.section-dark {
    background: linear-gradient(103.51deg, #0D1E44 25.62%, #112552 36.89%);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-white);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    margin-bottom: 16px;
}

.section-title p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
}

/* ---------- Two Column Layout ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.two-col-reverse {
    direction: rtl;
}

.two-col-reverse > * {
    direction: ltr;
}

.img-rounded {
    border-radius: var(--radius-xl);
    width: 100%;
    display: block;
}

.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 32px 0 0;
}

.intro-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.intro-card h2 {
    margin-bottom: 20px;
}

.mission-vision {
    margin-top: 48px;
    align-items: start;
}

.mv-icon {
    margin-bottom: 16px;
}

.mission-vision h3 {
    margin-bottom: 12px;
}

.mission-vision p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ---------- Cards ---------- */
.card {
    background: #FAFAFA;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-green {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
}

.card-green h3,
.card-green h4 {
    color: var(--color-white);
}

.card-dark {
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
}

.card-dark h3,
.card-dark h4 {
    color: var(--color-white);
}

/* ---------- Teaser Cards (3er Grid mit gruenem Rand) ---------- */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.teaser-card {
    background: #F6F7F8;
    border: 1px solid rgba(36, 179, 126, 0.4);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.teaser-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 24px -8px rgba(36, 179, 126, 0.25);
}

.teaser-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.teaser-card .teaser-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.teaser-card h3 {
    color: var(--color-navy);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.2px;
}

.teaser-card p {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.teaser-card p:last-child {
    margin-bottom: 0;
}

/* ---------- Timeline (Firmengeschichte Über uns) ---------- */
.timeline-wrap {
    background: #FAFBFC;
    border-radius: var(--radius-xl);
    padding: 64px 80px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Grid-Pattern nur in den Ecken (radialer Fade-out zur Mitte) */
.timeline-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(36, 179, 126, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 179, 126, 0.3) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at center, transparent 45%, #000 95%);
    mask-image: radial-gradient(ellipse 80% 90% at center, transparent 45%, #000 95%);
    z-index: 0;
}

.timeline-title {
    text-align: center;
    margin: 0 0 40px;
    color: var(--color-navy);
    position: relative;
    z-index: 1;
}

.timeline-viewport {
    max-width: 960px;
    margin: 0 auto;
    max-height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 20px;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) rgba(36, 179, 126, 0.1);
}

.timeline-viewport::-webkit-scrollbar {
    width: 6px;
}

.timeline-viewport::-webkit-scrollbar-track {
    background: rgba(36, 179, 126, 0.1);
    border-radius: 3px;
}

.timeline-viewport::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--color-primary), rgba(36, 179, 126, 0.4));
    border-radius: 3px;
}

.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 20px;
    width: 10px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
        rgba(36, 179, 126, 0) 0%,
        rgba(36, 179, 126, 1) 12%,
        rgba(36, 179, 126, 1) 88%,
        rgba(36, 179, 126, 0) 100%);
    border-radius: 10px;
    z-index: 0;
}

.timeline-entry {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px 0;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 36px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-navy);
    transform: translate(-50%, 0);
    z-index: 2;
}

.timeline-entry::after {
    content: '';
    position: absolute;
    top: 43px;
    height: 1px;
    background: var(--color-navy);
    width: 80px;
    z-index: 1;
}

.timeline-entry.right::after {
    left: calc(50% + 14px);
}

.timeline-entry.left::after {
    right: calc(50% + 14px);
}

.timeline-entry.right .timeline-content {
    grid-column: 2;
    padding-left: 100px;
    text-align: left;
}

.timeline-entry.left .timeline-content {
    grid-column: 1;
    padding-right: 100px;
    text-align: right;
}

.timeline-num {
    display: block;
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-year {
    color: var(--color-primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.timeline-headline {
    color: var(--color-navy);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
}

.timeline-content p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 8px;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

.card-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* ---------- Service Cards ---------- */
/* Services Card (dark, tabbed) */
.services-card {
    background: var(--color-navy) url('/storage/images/home-services-bg.webp') center / cover no-repeat;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.services-header {
    text-align: center;
    margin-bottom: 24px;
}

.services-tag {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.services-header h2 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.text-green {
    color: var(--color-primary);
}

.services-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
}


.services-tabs-wrap {
    text-align: center;
    margin-bottom: 36px;
}

.services-tabs {
    display: inline-flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 4px;
}

.services-tab {
    background: none;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    outline: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
}

.services-tab:hover {
    color: var(--color-white);
}

.services-tab.active {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 500;
}

.services-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 36px;
    min-height: 320px;
}

.services-panel {
    display: none;
}

.services-panel.active {
    display: block;
}

.services-panel-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.services-panel-title svg {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.services-panel h3 {
    color: var(--color-white);
    margin: 0;
}

.services-panel h3 a {
    color: var(--color-white);
}

.services-panel h3 a:hover {
    color: var(--color-primary);
}

.services-panel p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 12px;
}

.services-panel p:last-child {
    margin-bottom: 0;
}

/* ---------- Expandable Cards (Energieberatung) ---------- */
.expandable-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.expandable-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.expandable-card:hover {
    border-color: var(--color-primary);
}

.expandable-card h4 {
    font-size: 16px;
    font-weight: 500;
}

.expandable-card .expand-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ---------- Package Cards (DATA Crane) ---------- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.package-card {
    background: #FAFAFA;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
}

.package-card.featured {
    border-color: var(--color-primary);
    position: relative;
}

.package-card.featured::before {
    content: 'Beliebt';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.package-card h3 {
    margin-bottom: 8px;
}

.package-card .package-subtitle {
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: 24px;
}

.package-card ul {
    text-align: left;
    margin-bottom: 24px;
}

.package-card ul li {
    padding: 8px 0;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.package-card ul li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- Reasons Section (DATA Crane) ---------- */
.reasons-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.reason-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.reason-item:nth-child(even) {
    direction: rtl;
}

.reason-item:nth-child(even) > * {
    direction: ltr;
}

.reason-item .reason-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.reason-item .reason-image img {
    width: 100%;
}

.reason-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    margin-bottom: 16px;
}

/* ---------- Project / Reference Grid ---------- */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    background: #FAFAFA;
    font-family: var(--font-family);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(13, 30, 68, 0.9));
    color: var(--color-white);
}

.project-card .project-overlay h4 {
    color: var(--color-white);
    font-size: 16px;
}

.project-card .project-overlay p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 0;
}

/* ---------- Industry Cards ---------- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.industry-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.industry-card:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.industry-card:hover h4 {
    color: var(--color-white);
}

.industry-card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

/* ---------- Certification Table ---------- */
.cert-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.cert-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.cert-table th {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 16px 20px;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}

.cert-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
}

.cert-table tr:nth-child(even) {
    background: var(--color-bg-light);
}

.cert-table tr:hover {
    background: rgba(36, 179, 126, 0.05);
}

/* ---------- Jobs: Warum Rieker? ---------- */
.why-wrap {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 64px 80px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.why-wrap .section-title {
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    grid-auto-rows: 1fr;
}

.why-card:nth-child(1) { grid-column: 1 / 3; }
.why-card:nth-child(2) { grid-column: 3 / 5; }
.why-card:nth-child(3) { grid-column: 5 / 7; }
.why-card:nth-child(4) { grid-column: 2 / 4; }
.why-card:nth-child(5) { grid-column: 4 / 6; }

.why-card {
    background: #F6F7F8;
    border: 1px solid rgba(36, 179, 126, 0.4);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    height: 100%;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 24px -8px rgba(36, 179, 126, 0.25);
}

.why-card img {
    width: 40px;
    height: 40px;
    display: block;
    margin-bottom: 20px;
}

.why-card h3 {
    color: var(--color-navy);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.2px;
}

.why-card p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Jobs: Werde Teil unseres Teams ---------- */
.jobs-intro {
    text-align: center;
    margin-bottom: 40px;
}

.jobs-badge {
    display: block;
    width: 110px;
    height: auto;
    margin: 0 auto 24px;
}

.jobs-intro h2 {
    margin-bottom: 20px;
}

.jobs-intro p {
    color: var(--color-text-light);
    max-width: 820px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    background: #F6F7F8;
    border: 1px solid rgba(36, 179, 126, 0.4);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    text-decoration: none;
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: 0 12px 24px -8px rgba(36, 179, 126, 0.25);
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.job-card-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: block;
}

.job-card-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.job-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.job-card-title {
    color: var(--color-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.job-card-location {
    color: var(--color-text-light);
    font-size: 13px;
    line-height: 1.4;
}

.job-card-btn {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.jobs-empty {
    text-align: center;
    color: var(--color-text-light);
}

/* ---------- Jobs: Was unsere Mitarbeiter sagen (Reviews Carousel) ---------- */
.reviews-wrap {
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: 56px 56px 48px;
    color: var(--color-white);
}

.reviews-intro {
    margin-bottom: 32px;
}

.reviews-intro h2 {
    color: var(--color-white);
    margin: 0 0 20px;
}

.reviews-intro p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.7;
    max-width: 960px;
    margin: 0 0 12px;
}

.reviews-intro p:last-child {
    margin-bottom: 0;
}

.reviews-carousel {
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 16px;
    will-change: transform;
}

.review-card {
    flex: 0 0 calc((100% - 48px) / 4);
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 180px;
}

.review-stars {
    width: 109px;
    height: 20px;
    display: block;
}

.review-card h3 {
    color: var(--color-navy);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.review-text {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.review-author {
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

/* ---------- Contact Section ---------- */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 15px;
    transition: var(--transition);
    background: #FAFAFA;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(36, 179, 126, 0.1);
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
}

.form-check label {
    font-size: 14px;
    line-height: 1.5;
}

/* Office Locations */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.office-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.office-card h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.office-card p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.office-card a {
    color: var(--color-primary);
    font-weight: 500;
}

/* Map */
.contact-map {
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-primary);
    overflow: hidden;
    margin-top: 48px;
    height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Blog Hero Card (Blog und News) ---------- */
.hero-home .blog-hero-card {
    margin-top: 60px;
}

.blog-hero-card {
    background: linear-gradient(135deg, #2BBA7A 0%, #3ED89A 100%);
    border-radius: 20px;
    padding: 120px 60px;
    margin: 40px 0 0;
    color: var(--color-white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.blog-hero-card-inner {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

.blog-hero-card h2 {
    color: var(--color-white);
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 14px;
    text-align: center;
    line-height: 1.15;
}

.blog-hero-card p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    margin: 0 0 28px;
    text-align: center;
}

.blog-hero-search {
    display: flex;
    gap: 10px;
    margin: 0;
}

.blog-hero-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    border-radius: 6px;
    color: var(--color-white);
    padding: 0 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.blog-hero-reset:hover {
    background: rgba(255, 255, 255, 0.28);
    color: var(--color-white);
}

.blog-hero-search-input {
    flex: 1;
    background: var(--color-white);
    border: none;
    border-radius: 6px;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-navy);
    outline: none;
}

.blog-hero-search-input::placeholder {
    color: var(--color-text-light);
}

.blog-hero-search-btn {
    background: var(--color-navy);
    border: none;
    border-radius: 6px;
    color: var(--color-white);
    padding: 0 32px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.blog-hero-search-btn:hover {
    background: var(--color-primary);
}

.section-filter {
    padding-bottom: 0;
}

.section-list {
    padding-top: 20px;
}

.blog-filter {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.blog-filter-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-navy);
    border-radius: 999px;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blog-filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.blog-filter-btn.active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}

.blog-list {
    display: flex;
    flex-direction: column;
}

.blog-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid #E5E5E5;
}

.blog-row[hidden] {
    display: none;
}

.blog-row-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.blog-row-cat {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
}

.blog-row-cat:hover {
    background: var(--color-primary);
}

.blog-row-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-navy);
}

.blog-row-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.blog-row-title a:hover {
    color: var(--color-primary);
}

.blog-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--color-text-light);
    font-size: 14px;
}

.blog-row-meta .blog-row-date {
    color: var(--color-navy);
    font-weight: 500;
}

.blog-row-image {
    display: block;
    width: 280px;
    height: 280px;
    border-radius: 28px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

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

.blog-empty {
    text-align: center;
    color: var(--color-text-light);
    padding: 48px 0;
}

.blog-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

/* ---------- Downloads ---------- */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    background: #FAFBFC;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px 32px;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.download-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 12px 24px -8px rgba(36, 179, 126, 0.25);
    transform: translateY(-4px);
}

.download-card-content {
    min-width: 0;
}

.download-card-title {
    margin: 0 0 10px;
    color: var(--color-navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.download-card-desc {
    margin: 0 0 16px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.6;
}

.download-card-date {
    margin: 0;
    color: var(--color-text-light);
    font-size: 13px;
}

.download-card-btn {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.download-card-btn:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.rieker-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rieker-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-navy);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rieker-pagination-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.rieker-pagination-btn.active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
    cursor: default;
}

.rieker-pagination-btn.disabled {
    color: var(--color-text-light);
    background: #F6F7F8;
    cursor: not-allowed;
    opacity: 0.6;
}

.rieker-pagination-dots {
    color: var(--color-text-light);
    padding: 0 4px;
}

/* ---------- Benefits / Stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--color-text-light);
}

/* ---------- Newsletter Section ---------- */
.newsletter-section {
    background: var(--color-primary);
    padding: 48px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--color-white);
}

.newsletter-section h3 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 15px;
}

.newsletter-form button {
    padding: 14px 28px;
    border-radius: 50px;
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--color-navy-light);
}

/* ---------- Downloads ---------- */
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #FAFAFA;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: var(--transition);
}

.download-item:hover {
    border-color: var(--color-primary);
}

.download-item h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.download-item p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 0;
}

.download-item .download-btn {
    flex-shrink: 0;
}

/* ---------- Team Grid ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    text-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-card p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ---------- Legal Pages ---------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.legal-content h2 {
    font-size: 24px;
    margin: 32px 0 16px;
}

.legal-content h3 {
    font-size: 20px;
    margin: 24px 0 12px;
}

.legal-content p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content ul li {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 4px;
}

.legal-content a {
    color: var(--color-primary);
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ---------- Legal Wrap (Impressum / Datenschutz) ---------- */
.legal-wrap {
    background: #F6F7F8;
    border-radius: 20px;
    padding: 56px 60px;
}

.legal-wrap .legal-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

.legal-wrap .legal-content h2 {
    color: var(--color-navy);
    font-size: 15px;
    font-weight: 700;
    margin: 28px 0 10px;
}

.legal-wrap .legal-content h2:first-child {
    margin-top: 0;
}

.legal-wrap .legal-content h3 {
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 8px;
}

.legal-wrap .legal-content h4 {
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 600;
    margin: 16px 0 6px;
}

.legal-wrap .legal-content p {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 10px;
}

.legal-wrap .legal-content ul {
    margin: 0 0 12px;
    padding-left: 22px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.65;
}

.legal-wrap .legal-content ul li {
    margin-bottom: 4px;
}

.legal-wrap .legal-content a {
    color: var(--color-primary);
    word-break: break-word;
}

/* Cookie-Tabellen innerhalb legal-wrap */
.cookie-table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
}
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.cookie-table th,
.cookie-table td {
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
}
.cookie-table th {
    background: #EEF2F6;
    font-weight: 600;
    color: var(--color-navy);
    white-space: nowrap;
}
.cookie-table td {
    color: var(--color-text);
}

/* ---------- Search Page ---------- */
.search-page__form {
    display: flex;
    max-width: 640px;
    margin: 0 0 40px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background: #F6F7F8;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-page__form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(36, 179, 126, 0.15);
}
.search-page__input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 16px;
    color: var(--color-navy);
    outline: none;
}
.search-page__input::placeholder { color: var(--color-text-light); }
.search-page__btn {
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    padding: 0 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.search-page__btn:hover { background: var(--color-primary); }

.search-page__count {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0 0 24px;
}

.search-page__results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-page__result {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #FAFBFC;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-page__result:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.search-page__result-img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-page__result-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.search-page__result-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-primary);
}

.search-page__result-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.3;
}

.search-page__result-excerpt {
    font-size: 14px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.55;
}

.search-page__result-date {
    font-size: 13px;
    color: var(--color-text-light);
}

@media (max-width: 767px) {
    .search-page__result {
        flex-direction: column;
        padding: 16px;
    }
    .search-page__result-img {
        width: 100%;
        height: 160px;
    }
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-title {
    color: var(--color-navy);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
}

.post-meta {
    color: var(--color-navy);
    font-size: 14px;
    margin: 0 0 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.post-meta strong {
    font-weight: 600;
}

.post-breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: var(--color-primary);
}

.post-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.post-breadcrumb a:hover {
    color: var(--color-navy);
}

.post-breadcrumb-sep {
    color: var(--color-text-light);
}

.post-breadcrumb-current {
    color: var(--color-text-light);
}

.post-featured-image {
    max-width: 800px;
    margin: 0 auto 48px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content.legal-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

.post-back {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.blog-video {
    margin: 32px 0;
}

.blog-video video {
    width: 100%;
    max-width: 720px;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    background: var(--color-navy);
}

/* ---------- Footer ---------- */
.footer-wrapper {
    padding: 40px 0 0;
}

.site-footer {
    background-color: var(--color-navy);
    background-image:
        /* Sanfter Lichtstreifen oben — markiert den Übergang vom Content */
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 12%);
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Grüner Halo oben — Brand-Akzent, definiert den Footer-Anfang */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 1200px 200px at 50% 0%,
        rgba(0, 169, 92, 0.22),
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

/* Feines Punkt-Pattern — bewahrt die ruhige Textur des Originals */
.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1.2px
    );
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 1;
}

/* Inhalt über die Pseudo-Layer heben */
.site-footer > .footer-top,
.site-footer > .footer-bottom {
    position: relative;
    z-index: 2;
}

.footer-top {
    padding: 48px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-heading {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item a:hover {
    color: var(--color-primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-newsletter {
    margin-top: 12px;
    max-width: 100%;
}

.footer-newsletter__row {
    display: flex;
    gap: 0;
    max-width: 100%;
}

.footer-newsletter input[type="email"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #FFFFFF;
    color: var(--color-navy);
    font-size: 13px;
    font-family: var(--font-family);
}

.footer-newsletter input[type="email"]::placeholder {
    color: var(--color-text-light);
    font-size: 11px;
}

.footer-newsletter button {
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: #FFFFFF;
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-newsletter .altcha-group {
    margin-top: 12px;
    max-width: 100%;
}

.footer-newsletter altcha-widget {
    display: block;
    max-width: 100%;
}

.footer-newsletter button:hover {
    background: var(--color-bg-light);
}

.footer-newsletter-consent {
    display: none;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.footer-newsletter-consent:not([hidden]) {
    display: flex;
}

.footer-newsletter-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.footer-newsletter-consent a {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-newsletter-error {
    margin-top: 6px;
    font-size: 12px;
    color: #ff8a8a;
}

.footer-newsletter-success {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 40px;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    transition: var(--transition);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-social a:hover {
    background: var(--color-primary-dark);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-credit {
    font-size: 13px;
}

.footer-credit a {
    color: var(--color-primary);
}

/* ---------- Cookie Banner (Complianz-Style) ---------- */
.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    background: rgba(0,0,0,0.35);
}
body.cookie-banner-open { overflow: hidden; }

.cookie-banner__inner {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    max-width: 420px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px;
    color: var(--color-navy);
    font-size: 13px;
    line-height: 1.6;
}

.cookie-banner__header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cookie-banner__logo { height: 32px; width: auto; }
.cookie-banner__title { font-size: 15px; font-weight: 600; flex: 1; }
.cookie-banner__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-navy);
    padding: 4px;
    opacity: 0.5;
}
.cookie-banner__close:hover { opacity: 1; }

.cookie-banner__divider {
    height: 1px;
    background: #e8e8e8;
    margin: 16px 0;
}

.cookie-banner__text {
    font-size: 13px;
    color: #555;
    margin: 0 0 8px;
    line-height: 1.65;
}

.cookie-banner__categories {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-banner__category {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.cookie-banner__category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.cookie-banner__expand {
    background: none;
    border: none;
    padding: 2px;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.cookie-banner__category-title {
    font-weight: 600;
    font-size: 13px;
    flex: 1;
    color: var(--color-navy);
}
.cookie-banner__always-active {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}
.cookie-banner__chevron {
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    opacity: 0.4;
}
.cookie-banner__expand[aria-expanded="true"] .cookie-banner__chevron { transform: rotate(180deg); }

.cookie-banner__category-desc {
    padding: 0 14px 14px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.cookie-banner__toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-banner__toggle-track {
    width: 36px;
    height: 20px;
    background: #ccc;
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
}
.cookie-banner__toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cookie-banner__toggle input:checked + .cookie-banner__toggle-track {
    background: var(--color-primary);
}
.cookie-banner__toggle input:checked + .cookie-banner__toggle-track .cookie-banner__toggle-knob {
    transform: translateX(16px);
}
.cookie-banner__toggle input:disabled + .cookie-banner__toggle-track {
    background: var(--color-primary);
    opacity: 0.6;
}

.cookie-banner__info-links {
    padding: 8px 0 0;
}
.cookie-banner__info-links a {
    font-size: 12px;
    color: var(--color-primary);
    text-decoration: none;
}
.cookie-banner__info-links a:hover { text-decoration: underline; }

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cookie-banner__btn {
    flex: 1 1 auto;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    white-space: nowrap;
}
.cookie-banner__btn--accept {
    background: var(--color-navy);
    color: white;
    border-color: var(--color-navy);
}
.cookie-banner__btn--accept:hover { opacity: 0.9; }
.cookie-banner__btn--decline {
    background: white;
    color: var(--color-navy);
    border-color: #ccc;
}
.cookie-banner__btn--decline:hover { background: #f5f5f5; }
.cookie-banner__btn--settings,
.cookie-banner__btn--save {
    background: white;
    color: var(--color-navy);
    border-color: #ccc;
    flex-basis: 100%;
}
.cookie-banner__btn--settings:hover,
.cookie-banner__btn--save:hover { background: #f5f5f5; }

.cookie-banner__doc-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}
.cookie-banner__doc-links a {
    font-size: 11px;
    color: #888;
    text-decoration: none;
}
.cookie-banner__doc-links a:hover { color: var(--color-navy); }

.cookie-manage-consent {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    z-index: 9998;
    background: var(--color-navy);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: opacity 0.2s;
    box-sizing: border-box;
}
.cookie-manage-consent:hover { opacity: 0.9; }
.cookie-manage-consent__icon { display: none; }
@media (max-width: 767px) {
    .cookie-manage-consent {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
    }
    .cookie-manage-consent__text { display: none; }
    .cookie-manage-consent__icon { display: block; }
}

/* ---------- Separator / Decoration ---------- */
.line-separator {
    text-align: center;
    margin: 48px 0;
}

.line-separator img {
    margin: 0 auto;
}

.page-title-decoration {
    position: relative;
}

.page-title-decoration::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ---------- Bullet List (custom) ---------- */
.check-list li {
    padding: 6px 0;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ---------- Projekt-Detailseite ---------- */

.hero-projekt-detail {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(103.51deg, #0D1E44 25.62%, #112552 36.89%, #0D1E44 45.35%, #132A5B 60.06%, #0D1E44 72.27%);
    overflow: visible;
}

.hero-projekt-detail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: #FAFAFA;
    border-radius: 25px 25px 0 0;
}

.projekt-detail-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.projekt-detail-tag {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
}

.hero-projekt-detail h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

.projekt-detail-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.projekt-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.projekt-detail-content {
    padding: 40px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
}

.projekt-detail-content p {
    margin-bottom: 16px;
}

.projekt-detail-content strong {
    color: var(--color-navy);
}

.projekt-detail-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.projekt-detail-content li {
    margin-bottom: 8px;
}

.projekt-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-navy);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.projekt-detail-back:hover {
    color: var(--color-primary);
}

/* ---------- Leistungen — Engagement ---------- */

.engagement-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #EEF2F6;
    border-radius: 20px;
    overflow: hidden;
}

.engagement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.engagement-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.engagement-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    flex: 1;
}

.engagement-icon {
    flex-shrink: 0;
}

.engagement-icon svg {
    width: 40px;
    height: 40px;
}

.engagement-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

@media (max-width: 768px) {
    .engagement-card {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .engagement-image {
        max-height: 250px;
        overflow: hidden;
        border-radius: 12px;
    }

    .engagement-items {
        padding: 0;
    }

    .engagement-item {
        padding: 16px;
    }
}

/* ---------- Leistungen — Service Cards ---------- */

.leistungen-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: #EEF2F6;
    border-radius: 20px;
    padding: 16px;
}

.leistungen-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    text-decoration: none;
    color: var(--color-text);
    position: relative;
    isolation: isolate;
    transition: color 0.5s ease, transform 0.4s ease;
}

.leistungen-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.leistungen-card:hover {
    color: #fff;
    transform: translateY(-4px);
}

.leistungen-card:hover::after {
    opacity: 1;
}

.leistungen-card h4 {
    color: var(--color-navy);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    transition: color 0.5s ease;
}

.leistungen-card:hover h4 {
    color: #fff;
}

.leistungen-card-content {
    flex: 1;
}

.leistungen-card-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.leistungen-card-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-top: auto;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-navy);
    transition: color 0.5s ease;
}

.leistungen-card:hover .leistungen-card-btn {
    color: #fff;
}

@media (max-width: 1100px) {
    .leistungen-cards-wrapper {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .leistungen-card {
        padding: 24px 20px;
    }

    .datacrane-steps {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 24px;
    }
}

/* ---------- DATA Crane ---------- */

.datacrane-card {
    background: #EEF2F6;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
}

.datacrane-card h2 {
    margin-bottom: 24px;
}

.datacrane-card p {
    max-width: 800px;
    margin: 0 auto 12px;
}

.datacrane-problems {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 800px;
    margin: 24px auto;
}

.datacrane-problem {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #E30010;
    color: #fff;
    border-radius: 28px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
}

.datacrane-problem svg {
    flex-shrink: 0;
}

.datacrane-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 24px auto 0;
}

.datacrane-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-navy);
    text-align: center;
}

.datacrane-reasons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    text-align: left;
}

.datacrane-reason-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    position: relative;
    isolation: isolate;
    transition: transform 0.4s ease;
}

.datacrane-reason-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.datacrane-reason-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
    margin: 12px 0 8px;
    transition: color 0.5s ease;
}

.datacrane-reason-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
    text-align: left;
    transition: color 0.5s ease;
}

.datacrane-reason-card:hover {
    transform: translateY(-4px);
}

.datacrane-reason-card:hover::after {
    opacity: 1;
}

.datacrane-reason-card:hover h4,
.datacrane-reason-card:hover p {
    color: #fff;
}

.datacrane-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.datacrane-step-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px 24px;
    text-align: center;
    isolation: isolate;
    transition: transform 0.4s ease;
}

.datacrane-step-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.datacrane-step-card:hover {
    transform: translateY(-4px);
}

.datacrane-step-card:hover::after {
    opacity: 1;
}

.datacrane-step-card:hover h4,
.datacrane-step-card:hover p {
    color: #fff;
}

.datacrane-step-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.datacrane-step-card img {
    display: block;
    margin: 0 auto;
}

.datacrane-step-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-navy);
    margin: 16px 0 6px;
    transition: color 0.3s;
}

.datacrane-step-card p {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
    transition: color 0.3s;
}

.datacrane-contact-hero {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    margin-top: 32px;
    text-align: left;
    align-items: center;
}

.datacrane-contact-photo {
    text-align: center;
}

.datacrane-contact-photo img {
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
}

.datacrane-contact-photo h4 {
    margin-top: 16px;
    font-size: 20px;
    color: var(--color-navy);
}

.datacrane-contact-photo p {
    font-size: 14px;
    color: var(--color-text-light);
}

.datacrane-quote-icon {
    margin-bottom: 12px;
}

.datacrane-contact-quote p {
    text-align: left;
}

.datacrane-contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.datacrane-contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    text-align: left;
}

.datacrane-contact-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 20px;
    text-align: center;
}

.datacrane-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--color-text);
}

.datacrane-contact-item img {
    flex-shrink: 0;
    margin-top: 2px;
}

.datacrane-contact-item a {
    color: var(--color-text);
    text-decoration: none;
}

.datacrane-contact-item a:hover {
    color: var(--color-primary);
}

.datacrane-contact-item strong {
    color: var(--color-navy);
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.datacrane-contact-item > div {
    flex: 1;
}

.datacrane-contact-item > div > span {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.datacrane-expertise-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.datacrane-expertise-item {
    background: #EEF2F6;
    border-radius: 12px;
    padding: 16px;
}

.datacrane-expertise-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.datacrane-expertise-item strong {
    color: var(--color-navy);
    font-size: 15px;
}

.datacrane-expertise-item ul {
    padding-left: 20px;
    margin: 0;
    list-style: disc;
}

.datacrane-expertise-item li {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.datacrane-expertise-item span {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.datacrane-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.datacrane-pill {
    display: inline-block;
    border: 1px solid var(--color-navy);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-navy);
    background: #fff;
}

.btn-navy {
    display: inline-block;
    background: var(--color-navy);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-navy:hover {
    background: var(--color-primary);
}

@media (max-width: 768px) {
    .datacrane-contact-hero {
        grid-template-columns: 1fr;
    }

    .datacrane-contact-cards {
        grid-template-columns: 1fr;
    }

    .datacrane-card {
        padding: 24px 20px;
    }

    .datacrane-problems {
        grid-template-columns: 1fr;
    }

    .datacrane-features {
        grid-template-columns: 1fr;
    }

    .datacrane-reason-card {
        padding: 20px;
    }

    .datacrane-steps {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 24px;
    }
}

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

/* ---------- Kontakt ---------- */

.kontakt-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.kontakt-form-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    padding: 40px;
}

.kontakt-form-card h2 {
    margin-bottom: 12px;
}

.kontakt-form-card > p {
    margin-bottom: 24px;
    line-height: 1.7;
}

.kontakt-form-card a {
    color: var(--color-primary);
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kontakt-info-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    padding: 24px;
}

.kontakt-info-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.kontakt-info-card a {
    color: var(--color-navy);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.kontakt-info-card a:hover {
    color: var(--color-primary);
}

.kontakt-info-card p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.kontakt-info-highlight {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.kontakt-info-highlight h4,
.kontakt-info-highlight a {
    color: #fff;
}

.kontakt-info-highlight a:hover {
    color: #fff;
    text-decoration: underline;
}

.kontakt-standorte {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.kontakt-standort {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.kontakt-standort:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(36, 179, 126, 0.25);
}

.kontakt-standort h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.kontakt-standort a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 768px) {
    .kontakt-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .kontakt-form-card {
        padding: 24px 20px;
    }

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

/* ---------- Team ---------- */

.team-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #EEF2F6;
    border-radius: 20px;
    overflow: hidden;
}

.team-management {
    background: var(--color-navy);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.team-management h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.team-members {
    padding: 32px;
}

.team-members h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 24px;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.team-member {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.team-management .team-role {
    color: var(--color-text);
}

.team-flip {
    perspective: 1000px;
    min-height: 340px;
}

.team-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.team-flip:hover .team-flip-inner {
    transform: rotateY(180deg);
}

.team-flip-front,
.team-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.team-flip-back {
    transform: rotateY(180deg);
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.team-flip-back p {
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.team-flip-back h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.team-members-grid .team-member {
    background: var(--color-navy);
}

.team-members-grid .team-member h4 {
    color: #fff;
}

.team-members-grid .team-member.team-highlight {
    background: var(--color-primary);
}

.team-members-grid .team-member.team-highlight .team-role {
    color: var(--color-navy);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.team-member h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 500;
}

@media (max-width: 1200px) {
    .teaser-grid {
        gap: 20px;
    }

    .teaser-card {
        padding: 28px 24px;
    }

    .timeline-wrap {
        padding: 48px 40px;
    }

    .team-wrapper {
        grid-template-columns: 1fr;
    }

    .team-management {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .team-management h3 {
        grid-column: 1 / -1;
    }

    .team-members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .nav-overlay {
        width: 280px;
        max-width: calc(100vw - 28px);
    }

    .blog-hero-card {
        padding: 60px 24px;
        margin-top: 32px;
        border-radius: 16px;
        min-height: 320px;
    }

    .download-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 20px;
    }

    .legal-wrap {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .download-card-btn {
        justify-self: start;
        padding: 10px 24px;
    }

    .blog-hero-card h2 {
        font-size: 28px;
    }

    .blog-hero-search {
        flex-direction: column;
        gap: 8px;
    }

    .blog-hero-search-btn,
    .blog-hero-reset {
        padding: 14px 24px;
    }

    .teaser-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
    }

    .teaser-card {
        padding: 24px 20px;
    }

    .teaser-head {
        gap: 12px;
        margin-bottom: 16px;
    }

    .teaser-card .teaser-icon {
        width: 48px;
        height: 48px;
    }

    .timeline-wrap {
        padding: 32px 20px;
    }

    .timeline-wrap::before {
        background-size: 24px 24px;
    }

    .timeline-title {
        margin-bottom: 28px;
    }

    .timeline-viewport {
        max-width: 100%;
        max-height: 500px;
        padding-right: 12px;
    }

    .timeline-list::before {
        left: 8px;
        width: 6px;
        top: 16px;
        bottom: 16px;
        transform: none;
    }

    .timeline-entry {
        grid-template-columns: 1fr;
        padding: 12px 0;
    }

    .timeline-entry.right .timeline-content,
    .timeline-entry.left .timeline-content {
        grid-column: 1;
        padding-left: 36px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-entry::before {
        left: 11px;
        top: 20px;
    }

    .timeline-entry::after {
        display: none;
    }

    .timeline-year {
        font-size: 20px;
    }

    .team-wrapper {
        display: block;
    }

    .team-management {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 24px 16px;
    }

    .team-members {
        padding: 24px 16px;
    }

    .team-members-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Flip komplett deaktivieren auf Phone */
    .team-flip {
        perspective: none;
        min-height: auto;
    }

    .team-flip-inner {
        transform-style: flat;
    }

    .team-flip:hover .team-flip-inner {
        transform: none;
    }

    .team-flip-front,
    .team-flip-back {
        position: static;
        backface-visibility: visible;
    }

    .team-flip-back {
        transform: none;
        border-radius: 0 0 16px 16px;
        padding: 16px 20px;
    }

    /* Name auf Mobile nicht doppelt zeigen — steht schon auf der Front */
    .team-flip-back h4 {
        display: none;
    }

    .team-flip-front {
        border-radius: 16px 16px 0 0;
    }

    .team-member img {
        aspect-ratio: 4/3;
        object-fit: cover;
        object-position: top;
    }
}

/* ---------- Team Video ---------- */

.team-video {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.team-video video {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.team-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.team-video-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.6);
}

.team-video-play.hidden {
    display: none;
}


/* ---------- Vergleichstabelle ---------- */

.table-responsive {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table thead {
    background: var(--color-navy);
    color: #fff;
}

.comparison-table th {
    padding: 16px 20px;
    font-weight: 600;
    text-align: left;
    font-size: 14px;
}

.comparison-table td {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
    vertical-align: top;
    color: var(--color-text);
    line-height: 1.6;
}

.comparison-table tbody tr:hover {
    background: #EEF2F6;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--color-navy);
    min-width: 200px;
}

@media (max-width: 768px) {
    .comparison-table th,
    .comparison-table td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .comparison-table td:first-child {
        min-width: 150px;
    }
}

/* ---------- Branchen Page (Projekte-Seite) ---------- */

.section-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.section-header-centered h2 {
    margin-bottom: 16px;
}

.section-header-centered p {
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.7;
}

.branchen-wrapper {
    background: #EEF2F6;
    border-radius: 28px;
    padding: 48px 40px;
}

.branchen-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.branchen-page-card {
    display: flex;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    padding: 12px;
    transition: border-color 0.3s;
}

.branchen-page-card:hover {
    border-color: var(--color-primary);
}

.branchen-page-img {
    width: 50%;
    min-width: 50%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.branchen-page-text {
    padding: 4px 12px;
}

.branchen-page-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.branchen-page-text p {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.branchen-grid-page {
    align-items: stretch;
}

.branchen-grid-page .branchen-page-card {
    height: 100%;
}

/* ---------- Referenzen Grid (Projekte-Seite) ---------- */

.ref-wrapper {
    background: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 28px;
    padding: 48px 40px;
}

.ref-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.ref-filter-btn {
    background: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-navy);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ref-filter-btn:hover,
.ref-filter-btn.active {
    background: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ref-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #EAEAEA;
    background: #fff;
    transition: border-color 0.3s;
}

.ref-card:hover {
    border-color: var(--color-primary);
}

.ref-card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-navy);
}

.ref-card-img-empty {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3366 100%);
}

.ref-card-content {
    padding: 12px 44px 12px 16px;
}

.ref-card-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.ref-tag {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.ref-card-link {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    background: #fff;
    transition: all 0.2s;
    text-decoration: none;
}

.ref-card-link:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ---------- Projekte Carousel ---------- */

.projects-section {
    padding: 40px 0;
}

.projects-heading {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 32px;
    line-height: 1.2;
}

.projects-carousel {
    position: relative;
    overflow: hidden;
}

.projects-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.project-carousel-card {
    flex: 0 0 calc(100% - 80px);
    min-height: 380px;
    border-radius: 28px;
    background-position: center right;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.project-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0D1E44 52%, rgba(13, 30, 68, 0) 100%);
    border-radius: 28px;
    transition: background 0.3s;
}

.project-carousel-card:hover .project-carousel-overlay {
    background: linear-gradient(90deg, #24B37E 52%, rgba(0, 0, 0, 0) 100%);
}

.project-carousel-content {
    position: relative;
    z-index: 1;
    padding: 30px 40px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-carousel-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.project-carousel-content p {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-green {
    display: inline-block;
    background: #24B37E;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s;
    align-self: flex-start;
}

.btn-green:hover {
    background: #1d9a6b;
}

.projects-carousel-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 0 4px;
}

.carousel-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-navy);
    transition: color 0.2s;
}

.carousel-arrow:hover {
    color: #24B37E;
}

.carousel-arrow.disabled {
    opacity: 0.3;
    cursor: default;
}

.carousel-progress {
    flex: 1;
    height: 3px;
    background: #EAEAEA;
    border-radius: 2px;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    background: var(--color-navy);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .social-links,
    .header-separator {
        display: none;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 24px; }

    .kontakt-cta-img {
        height: 100%;
        right: -60px;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .packages-grid,
    .projects-grid,
    .blog-grid,
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .why-wrap {
        padding: 48px 40px;
    }

    .why-grid {
        gap: 20px;
    }

    .why-card {
        padding: 28px 24px;
    }

    .reviews-wrap {
        padding: 48px 40px;
    }

    .review-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }

    .offices-grid {
        grid-template-columns: 1fr;
    }

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

    .reason-item {
        grid-template-columns: 1fr;
    }

    .reason-item:nth-child(even) {
        direction: ltr;
    }

    .project-carousel-content h3 {
        font-size: 14px;
    }

    .project-carousel-content p {
        font-size: 12px;
        -webkit-line-clamp: 5;
    }

    .btn-green {
        font-size: 12px;
        padding: 8px 16px;
        border-radius: 8px;
    }

    .project-carousel-card {
        min-height: 320px;
    }

    .project-carousel-content {
        width: 75%;
    }

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

@media (max-width: 768px) {
    .hero-home {
        padding: 90px 0 40px;
        background: linear-gradient(to bottom, var(--color-navy) 90%, #FAFAFA 90%);
    }

    .hero-home h1 {
        font-size: 32px;
    }

    .hero-home .hero-image img,
    .hero-home .hero-image video {
        border-radius: 12px;
    }

    .hero-page {
        padding: 120px 0 40px;
    }

    .site-header {
        padding: 8px 12px;
    }

    .header-container {
        padding: 0 0 0 16px;
        height: 48px;
    }

    .menu-toggle-btn {
        margin-right: 2px;
    }

    .logo-img {
        height: 32px;
    }

    .section {
        padding: 24px 0;
    }

    .services-card {
        padding: 24px 16px;
    }

    .services-tabs {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .services-tab {
        font-size: 14px;
        padding: 10px 20px;
        border-radius: var(--radius-sm);
    }

    .services-tab.active {
        border-radius: var(--radius-sm);
    }

    .services-tab {
        text-align: center;
        padding: 10px 16px;
        font-size: 14px;
    }

    .services-content {
        padding: 24px 16px;
    }

    .services-panel-title svg {
        width: 36px;
        height: 36px;
    }

    .services-panel h3 {
        font-size: 18px;
    }

    .services-panel p {
        font-size: 14px;
    }

    .intro-card {
        padding: 24px 20px;
    }

    .crane-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .crane-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .crane-tab {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        font-size: 14px;
        text-align: left;
    }

    .crane-tab svg,
    .crane-tab img {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .crane-content {
        padding: 24px 16px;
        min-height: auto;
    }

    .crane-desc {
        max-width: 100%;
        font-size: 16px;
    }

    .crane-features li {
        font-size: 15px;
    }

    .crane-logo {
        position: static;
        display: block;
        margin: 24px auto 0;
        width: 120px;
    }

    .branchen-bento {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .branchen-bento .bento-cell {
        grid-area: auto;
    }

    /* Mobile: Gesundheit-Foto + Text zusammen */
    .branchen-bento .bento-cell:nth-child(1) { order: 1; }
    .branchen-bento .bento-cell:nth-child(4) { order: 2; }
    /* Öffentlicher Raum */
    .branchen-bento .bento-cell:nth-child(2) { order: 3; }
    /* Büro Text + Foto zusammen */
    .branchen-bento .bento-cell:nth-child(3) { order: 4; }
    .branchen-bento .bento-cell:nth-child(5) { order: 5; }

    .bento-img img {
        height: 200px;
    }

    .bento-photo-card {
        min-height: 300px;
    }

    .branchen-cards-grid {
        grid-template-columns: 1fr;
    }

    .certification-item img {
        height: 60px;
    }

    .certifications-track {
        gap: 40px;
        animation-duration: 28s;
    }

    .kontakt-cta {
        flex-direction: column;
        padding: 32px 24px;
    }

    .kontakt-cta-content h3 {
        font-size: 24px;
    }

    .kontakt-cta-content {
        max-width: 100%;
    }

    .kontakt-cta-img {
        position: static;
        height: auto;
        width: 200px;
        margin: -20px auto -32px;
    }

    .kontakt-cta-img img {
        height: auto;
        width: 100%;
    }

    .kennzahlen-grid,
    .blog-home-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 24px 20px;
    }

    .cta-heading {
        font-size: 22px;
    }

    .packages-grid,
    .projects-grid,
    .blog-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .expandable-cards {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .why-wrap {
        padding: 32px 20px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        grid-auto-rows: auto;
    }

    .why-card:nth-child(n) {
        grid-column: auto;
    }

    .why-card {
        padding: 24px 20px;
        height: auto;
    }

    .jobs-badge {
        width: 90px;
    }

    .job-card {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon info"
            "btn btn";
        gap: 12px 16px;
        padding: 16px;
    }

    .job-card-icon {
        grid-area: icon;
        width: 48px;
        height: 48px;
    }

    .job-card-info {
        grid-area: info;
    }

    .job-card-btn {
        grid-area: btn;
        text-align: center;
        padding: 12px;
    }

    .reviews-wrap {
        padding: 32px 20px;
    }

    .review-card {
        flex: 0 0 100%;
    }

    .blog-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 0;
    }

    .blog-row-image {
        order: -1;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }

    .blog-row-title {
        font-size: 22px;
    }

    .blog-row-cat {
        font-size: 12px;
        padding: 6px 14px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-top {
        padding: 32px 20px;
    }

    .footer-bottom {
        padding: 24px 20px;
    }

    .footer-newsletter {
        width: 100%;
    }

    .footer-legal {
        flex-wrap: wrap;
    }

    .projects-heading {
        font-size: 28px;
    }

    .branchen-wrapper {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .branchen-grid-page {
        grid-template-columns: 1fr;
    }

    .branchen-page-card {
        gap: 12px;
    }

    .ref-grid {
        grid-template-columns: 1fr;
    }

    .ref-wrapper {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .branchen-page-img {
        width: 40%;
        min-width: 40%;
    }

    .ref-card-content {
        padding: 12px 44px 12px 12px;
    }

    .project-carousel-card {
        flex: 0 0 100%;
        min-height: 340px;
        border-radius: 16px;
    }

    .project-carousel-overlay {
        background: linear-gradient(180deg, #0D1E44 0%, rgba(13, 30, 68, 0) 100%);
        border-radius: 16px;
    }

    .project-carousel-card:hover .project-carousel-overlay {
        background: linear-gradient(180deg, #24B37E 0%, rgba(0, 0, 0, 0) 100%);
    }

    .project-carousel-content {
        width: 100%;
        padding: 20px 16px;
    }

    .project-carousel-content h3 {
        font-size: 16px;
    }

    .project-carousel-content p {
        font-size: 13px;
        -webkit-line-clamp: 4;
    }

    .btn-green {
        font-size: 14px;
    }

    .hero-projekt-detail {
        padding: 100px 0 60px;
    }

    .hero-projekt-detail h1 {
        font-size: 28px;
    }


    .projekt-detail-content {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 24px; overflow-wrap: break-word; }
    h2 { font-size: 22px; }

    .hero-home {
        background: linear-gradient(to bottom, var(--color-navy) 88%, #FAFAFA 88%);
    }

    .container {
        padding: 0 16px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-projekt-detail {
        padding: 90px 0 50px;
    }

    .hero-projekt-detail h1 {
        font-size: 24px;
    }

    .projekt-detail-tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    .projekt-detail-content {
        padding: 20px 16px;
        font-size: 15px;
    }
}
