/* marel-style */
/*
Theme Name: MAREL BAU Theme
Theme URI: https://marel-bau.de
Author: MAREL BAU GmbH
Author URI: https://marel-bau.de
Description: Individuelles WordPress Theme für MAREL BAU GmbH
Version: 1.0
Text Domain: marelbau-theme
*/

@font-face {
    font-family: 'Inter';
    src: url('https://marel-bau.de/wp-content/themes/marelbau-theme/assets/fonts/Inter-Variable-latin.woff2') format('woff2'),
         url('https://marel-bau.de/wp-content/themes/marelbau-theme/assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Arial auf Inter-Maße skaliert: verhindert Layout-Verschiebung beim Schriftwechsel */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('Helvetica'), local('Liberation Sans');
    ascent-override: 90.49%;
    descent-override: 22.56%;
    line-gap-override: 0%;
    size-adjust: 107.06%;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
    font-family: 'Inter', 'Inter Fallback', sans-serif;
    color: #1d2433;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-snap-type: y proximity;
}

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

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

.container {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
}

.site-main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

section,
.content-section,
.leistungen-section,
.site-footer {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.center-heading {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #d7deeb;
    background: #ffffff;
    color: #7b8391;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #1c2434;
}

.section-heading p {
    margin: 0;
    color: #667084;
    font-size: 17px;
    line-height: 1.75;
}

.content-section {
    padding: 95px 0;
    background: #eef3fa;
}

.leistungen-section {
    padding: 95px 0 110px;
    background: #f7f9fd;
}

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

.service-card {
    background: #ffffff;
    border: 1px solid #dfe6f2;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(18, 32, 60, 0.04);
}

.service-card-primary {
    background: linear-gradient(135deg, #2f7cff 0%, #4d8fff 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(47, 124, 255, 0.24);
}

.service-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2f7cff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.service-card-primary .service-tag {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.service-card h3 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #1d2433;
}

.service-card-primary h3 {
    color: #ffffff;
}

.service-card p {
    margin: 0 0 18px;
    color: #647084;
    line-height: 1.75;
    font-size: 16px;
}

.service-card-primary p {
    color: rgba(255, 255, 255, 0.92);
}

.service-meta {
    padding-top: 14px;
    border-top: 1px solid #e7edf7;
    color: #8a92a0;
    font-size: 14px;
    font-weight: 500;
}

.service-card-primary .service-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.20);
    color: rgba(255, 255, 255, 0.88);
}

.site-footer {
    background: #081427;
    padding: 54px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.site-footer p,
.site-footer a {
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    line-height: 1.7;
}

.footer-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700;
}

@media (max-width: 991px) {
    .services-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body {
        scroll-snap-type: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .service-card h3 {
        font-size: 24px;
    }
}

/* marel-base */
@font-face {
    font-family: 'Inter';
    src: url('https://marel-bau.de/wp-content/themes/marelbau-theme/assets/fonts/Inter-Variable-latin.woff2') format('woff2'),
         url('https://marel-bau.de/wp-content/themes/marelbau-theme/assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', 'Inter Fallback', sans-serif;
    color: #1d2433;
    background: #ffffff;
}

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

img,
video {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

.container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.site-main {
    display: block;
}

/* admin bar fix */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
/* marel-utilities */
.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.hidden {
    display: none !important;
}
/* marel-top-header */
:root {
    --top-header-height: 44px;
    --top-header-bg: linear-gradient(90deg, #f8fbff 0%, #eef5ff 50%, #f8fbff 100%);
    --top-header-border: #dbe6f3;
    --top-header-text: #3f4755;
    --top-header-muted: #64748b;
    --top-header-blue: #2f7cff;
    --top-header-blue-dark: #175fe6;
    --top-header-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.top-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-header-height);
    z-index: 10000;
    background: var(--top-header-bg);
    border-bottom: 1px solid var(--top-header-border);
    box-shadow: var(--top-header-shadow);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.top-header-bar.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.top-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.top-header-side {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 220px;
}

.top-header-left {
    justify-content: flex-start;
}

.top-header-right {
    justify-content: flex-end;
}

.top-header-items {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    overflow: hidden;
}

.top-header-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--top-header-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-header-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -9px;
    width: 1px;
    height: 12px;
    background: #d7e0ec;
    transform: translateY(-50%);
}

.top-header-icon,
.top-header-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-header-icon {
    color: var(--top-header-muted);
}

.top-header-icon svg,
.top-header-contact-icon svg {
    display: block;
}

.top-header-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.top-header-phone {
    color: #ffffff;
    background: linear-gradient(135deg, var(--top-header-blue) 0%, var(--top-header-blue-dark) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 4px 14px rgba(47, 124, 255, 0.25);
}

.top-header-phone:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 8px 18px rgba(47, 124, 255, 0.32);
}

.top-header-mail {
    color: var(--top-header-blue-dark);
    background: #ffffff;
    border: 1px solid #d8e5fb;
    box-shadow: 0 2px 8px rgba(47, 124, 255, 0.08);
}

.top-header-mail:hover {
    transform: translateY(-1px);
    background: #f5f9ff;
    border-color: #bfd4fb;
}

.top-header-mail .top-header-contact-icon {
    color: var(--top-header-blue);
}

.top-header-contact-text {
    display: inline-block;
}

/* Admin Bar */
body.admin-bar .top-header-bar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .top-header-bar {
        top: 46px;
    }
}

/* Laptop / kleiner Desktop */
@media (max-width: 1200px) {
    .top-header-side {
        min-width: auto;
    }

    .top-header-items {
        gap: 10px 14px;
    }

    .top-header-item {
        font-size: 11.5px;
    }

    .top-header-contact {
        padding: 6px 10px;
        font-size: 11.5px;
    }

    .top-header-contact-text {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Tablet */
@media (max-width: 991px) {
    :root {
        --top-header-height: 40px;
    }

    .top-header-inner {
        gap: 12px;
    }

    .top-header-side {
        min-width: auto;
    }

    .top-header-items {
        gap: 8px 12px;
    }

    .top-header-item {
        font-size: 11px;
    }

    .top-header-item:not(:last-child)::after {
        display: none;
    }

    .top-header-contact {
        min-height: 30px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .top-header-contact-text {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Mobile komplett aus */
@media (max-width: 640px) {
    :root {
        --top-header-height: 0px;
    }

    .top-header-bar {
        display: none;
    }
}
/* marel-header */
:root {
    --top-header-height: 38px;
    --admin-bar-offset: 0px;
    --site-header-top: var(--top-header-height);
}

body.top-header-hidden {
    --site-header-top: 0px;
}

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

.site-header {
    position: fixed;
    top: calc(var(--site-header-top) + var(--admin-bar-offset));
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #071734;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        top 0.22s ease,
        transform 0.3s ease,
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}

/* Startseite transparent */
.home .site-header {
    background: rgba(7, 23, 52, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Alle anderen Seiten direkt blau */
body:not(.home) .site-header {
    background: #071734;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Shrink */
.site-header.is-shrunk {
    background: rgba(7, 23, 52, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

/* Desktop container normal */
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 68px;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    transition:
        min-height 0.3s ease,
        height 0.3s ease,
        padding 0.3s ease,
        gap 0.3s ease;
}

/* Desktop container shrunk – ca. 10px größer als vorher */
.site-header.is-shrunk .header-container {
    min-height: 42px;
    height: 42px;
    padding: 0 16px;
    gap: 14px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

.site-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 220px;
    max-width: 100%;
    min-height: 46px;
    overflow: hidden;
    transition:
        min-height 0.3s ease,
        height 0.3s ease,
        width 0.3s ease;
}

/* Shrink: Logo klein, aber nicht ultramicro */
.site-header.is-shrunk .site-logo {
    width: 130px;
    min-height: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
}

.site-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    filter: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        max-height 0.3s ease;
}

.site-logo-default {
    max-height: 56px;
    opacity: 1;
    transform: translateY(0);
}

.site-logo-scrolled {
    position: absolute;
    left: 0;
    top: 50%;
    max-height: 30px;
    opacity: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Im Shrink Standardlogo aus, kleines Logo an */
.site-header.is-shrunk .site-logo-default {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    max-height: 22px;
}

.site-header.is-shrunk .site-logo-scrolled {
    opacity: 1;
    transform: translateY(-50%);
    max-height: 22px;
}

.site-header.is-shrunk .site-logo img {
    max-height: 22px;
}

.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: gap 0.3s ease;
}

.site-header.is-shrunk .nav-menu {
    gap: 16px;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.94);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    transition:
        opacity 0.2s ease,
        color 0.2s ease,
        font-size 0.3s ease,
        line-height 0.3s ease,
        height 0.3s ease;
}

.site-header.is-shrunk .nav-menu a {
    display: inline-flex;
    align-items: center;
    height: 42px;
    font-size: 13px;
    line-height: 1;
    padding: 0;
}

.nav-menu a:hover,
.marel-link:hover {
    opacity: 0.86;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 0 0 auto;
    transition: gap 0.3s ease;
}

.site-header.is-shrunk .header-right {
    gap: 10px;
}

.marel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 14px;
    background: #2f7cff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(47, 124, 255, 0.24);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        padding 0.3s ease,
        height 0.3s ease,
        font-size 0.3s ease,
        border-radius 0.3s ease;
}

.site-header.is-shrunk .marel-link {
    height: 30px;
    padding: 0 12px;
    font-size: 11px;
    line-height: 1;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(47, 124, 255, 0.2);
}

.marel-link:hover {
    transform: translateY(-1px);
}

.desktop-cta {
    display: inline-flex;
}

.mobile-menu-cta {
    display: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        width 0.3s ease,
        height 0.3s ease,
        border-radius 0.3s ease;
}

.site-header.is-shrunk .menu-toggle {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition:
        transform 0.28s ease,
        opacity 0.28s ease,
        width 0.3s ease;
}

.site-header.is-shrunk .menu-toggle span {
    width: 14px;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-header-contacts {
    display: none;
}

.mobile-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mobile-contact-btn:hover {
    transform: translateY(-1px);
}

.mobile-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-contact-phone {
    background: linear-gradient(135deg, #2f7cff 0%, #175fe6 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(47, 124, 255, 0.22);
}

.mobile-contact-mail {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-service-bar {
    display: none;
}

/* Tablet / kleiner Desktop */
@media (max-width: 991px) {
    .header-container {
        min-height: 62px;
        padding: 6px 20px;
        gap: 18px;
    }

    .site-logo {
        width: 200px;
        min-height: 42px;
    }

    .site-logo-default {
        max-height: 50px;
    }

    .site-logo-scrolled {
        max-height: 28px;
    }

    .nav-menu {
        gap: 18px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .site-header.is-shrunk .header-container {
        min-height: 38px;
        height: 38px;
        padding: 0 12px;
        gap: 10px;
    }

    .site-header.is-shrunk .site-logo {
        width: 110px;
        min-height: 20px;
        height: 20px;
    }

    .site-header.is-shrunk .site-logo img,
    .site-header.is-shrunk .site-logo-default,
    .site-header.is-shrunk .site-logo-scrolled {
        max-height: 20px;
    }

    .site-header.is-shrunk .nav-menu {
        gap: 12px;
    }

    .site-header.is-shrunk .nav-menu a {
        height: 38px;
        font-size: 12px;
    }

    .site-header.is-shrunk .marel-link {
        height: 28px;
        padding: 0 10px;
        font-size: 10px;
    }

    .site-header.is-shrunk .menu-toggle {
        width: 32px;
        height: 32px;
    }

    .site-header.is-shrunk .menu-toggle span {
        width: 12px;
    }
}

/* WP Admin Bar mobil */
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: calc(var(--top-header-height, 44px) + 46px);
    }

    body.admin-bar.top-header-hidden .site-header {
        top: 46px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .mobile-service-bar,
    .site-header,
    .main-navigation {
        transition:
            transform 0.3s ease,
            top 0.3s ease,
            opacity 0.25s ease,
            background 0.35s ease,
            border-color 0.35s ease,
            box-shadow 0.35s ease,
            backdrop-filter 0.35s ease;
    }

    .mobile-service-bar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #081a36, #0d2246);
        z-index: 10001;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-service-bar.is-mobile-hidden {
        transform: translateY(-100%);
    }

    .mobile-service-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
    }

    .mobile-service-logo {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        flex: 0 0 auto;
        text-decoration: none;
    }

    .mobile-service-logo img {
        display: block;
        width: auto;
        height: 28px;
        max-width: 110px;
    }

    .mobile-service-phone {
        display: flex;
        align-items: center;
        min-width: 0;
        flex: 1 1 auto;
        color: #ffffff;
        text-decoration: none;
    }

    .mobile-service-text {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
        min-width: 0;
    }

    .mobile-service-label {
        font-size: 11px;
        font-weight: 700;
        color: #7fc0ff;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-service-number {
        font-size: 15px;
        font-weight: 700;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-service-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    .mobile-service-mail,
    .mobile-service-burger {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        color: #ffffff;
        padding: 0;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-service-burger {
        flex-direction: column;
        gap: 4px;
    }

    .mobile-service-burger span {
        display: block;
        width: 16px;
        height: 2px;
        border-radius: 999px;
        background: #ffffff;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .site-header.menu-open .mobile-service-burger span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.menu-open .mobile-service-burger span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .mobile-service-burger span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-header {
        position: fixed;
        top: 58px !important;
        left: 0;
        width: 100%;
        height: 0 !important;
        min-height: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: visible !important;
        z-index: 9999;
    }

    body.top-header-hidden .site-header {
        top: 58px !important;
    }

    .site-header.is-mobile-hidden {
        transform: translateY(-100%);
    }

    .header-container {
        min-height: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        overflow: visible !important;
    }

    .site-branding,
    .header-right,
    .desktop-cta,
    .menu-toggle,
    .mobile-header-contacts {
        display: none !important;
    }

    .main-navigation {
        position: fixed;
        top: 59px;
        left: 0;
        right: 0;
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 16px 16px 18px;
        background: rgba(7, 23, 52, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        z-index: 10000;
    }

    .site-header.menu-open .main-navigation {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu li:last-child {
        border-bottom: 0;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 14px 2px;
        font-size: 15px;
        color: #ffffff;
        height: auto;
    }

    .mobile-menu-cta {
        display: block;
        margin-top: 14px;
    }

    .mobile-menu-cta .marel-link {
        display: flex;
        width: 100%;
        height: auto;
        padding: 13px 16px;
        border-radius: 12px;
        font-size: 14px;
    }

    body.admin-bar .site-header,
    body.admin-bar.top-header-hidden .site-header {
        top: 46px !important;
    }

    body.admin-bar .main-navigation,
    body.admin-bar.top-header-hidden .main-navigation {
        top: 105px;
    }

    body.admin-bar .site-header.is-mobile-hidden,
    body.admin-bar.top-header-hidden .site-header.is-mobile-hidden {
        transform: translateY(calc(-100% - 46px));
    }
}
/* marel-footer */
.site-footer {
    background: #071734;
    color: rgba(255, 255, 255, 0.82);
    padding: 54px 0 26px;
    margin-top: 80px;
}

.footer-container {
    width: min(1240px, calc(100% - 120px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand,
.footer-contact-item {
    min-width: 0;
}

.footer-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.footer-text {
    margin: 0;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.78);
}

.footer-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8eb8ff;
}

.footer-contact-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.86);
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #8eb8ff;
}

.footer-contact-item a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 22px;
    text-align: center;
}

.footer-copy {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.66);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

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

.footer-separator {
    color: rgba(255, 255, 255, 0.32);
}

@media (max-width: 991px) {
    .footer-container {
        width: calc(100% - 64px);
    }

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
    }
}

@media (max-width: 640px) {
    .footer-container {
        width: calc(100% - 32px);
    }

    .site-footer {
        padding: 42px 0 22px;
        margin-top: 56px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 22px;
    }

    .footer-title {
        font-size: 22px;
    }

    .footer-text,
    .footer-contact-item p,
    .footer-copy,
    .footer-legal a {
        font-size: 14px;
    }
}
/* marel-referenzen-galerie */
:root {
    --rg-text: #0f172a;
    --rg-text-soft: #475569;
    --rg-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --rg-shadow-active: 0 16px 40px rgba(15, 23, 42, 0.14);
    --rg-radius: 20px;
    --rg-radius-sm: 16px;
}

/* =========================================================
   GLOBAL PAGE BACKGROUND ONLY
========================================================= */

.projektgalerie-einfach {
    position: relative;
    padding: 0 0 78px;
    overflow: hidden;
    color: var(--rg-text);
    background:
        radial-gradient(circle at 10% 8%, rgba(91, 156, 255, 0.16) 0%, transparent 20%),
        radial-gradient(circle at 84% 12%, rgba(163, 172, 184, 0.12) 0%, transparent 18%),
        radial-gradient(circle at 16% 42%, rgba(166, 210, 255, 0.14) 0%, transparent 20%),
        radial-gradient(circle at 82% 70%, rgba(74, 222, 128, 0.10) 0%, transparent 18%),
        radial-gradient(circle at 26% 88%, rgba(255, 214, 102, 0.08) 0%, transparent 14%),
        linear-gradient(
            180deg,
            #edf4fc 0%,
            #eef4fa 12%,
            #f1f4f8 28%,
            #f4f6f7 46%,
            #f4f6f4 64%,
            #f0f5f1 82%,
            #edf5ef 100%
        );
}

.projektgalerie-einfach::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 12%, rgba(59, 130, 246, 0.16) 0%, transparent 16%),
        radial-gradient(circle at 78% 18%, rgba(148, 163, 184, 0.14) 0%, transparent 14%),
        radial-gradient(circle at 22% 60%, rgba(255, 193, 7, 0.06) 0%, transparent 12%),
        radial-gradient(circle at 76% 78%, rgba(34, 197, 94, 0.10) 0%, transparent 16%);
    filter: blur(56px);
    opacity: 0.9;
    animation: globalBackgroundDrift 26s ease-in-out infinite alternate;
}

.projektgalerie-einfach::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px);
    background-size: 70px 70px;
    opacity: 0.16;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.04));
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.04));
}

.projektgalerie-einfach .wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.projekt-kategorien {
    position: relative;
    z-index: 2;
    background: transparent;
}

/* =========================================================
   HERO
========================================================= */

.projekte-hero {
    position: relative;
    padding: 152px 28px 40px;
    background: transparent;
}

.projekte-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.04), transparent 20%);
    pointer-events: none;
}

.projekte-hero::after {
    content: "";
    display: block;
    position: relative;
    width: 104px;
    height: 4px;
    margin-top: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.22);
}

.projekte-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    max-width: 900px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #0f172a;
    text-wrap: balance;
}

.projekte-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.72;
    color: #526277;
}

/* =========================================================
   SECTION BASE - REALLY TRANSPARENT
========================================================= */

.projekt-slider-section {
    position: relative;
    padding: 28px 0 30px;
    overflow: visible;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.projekt-slider-section + .projekt-slider-section {
    margin-top: 2px;
}

.projekt-slider-section::before,
.projekt-slider-section::after {
    content: none !important;
}

/* =========================================================
   HEADINGS
========================================================= */

.section-head {
    position: relative;
    z-index: 3;
    margin-bottom: 14px;
    padding: 0 28px;
}

.section-head h2 {
    margin: 0 0 6px;
    font-size: clamp(21px, 2vw, 30px);
    line-height: 1.08;
    letter-spacing: -0.028em;
    font-weight: 800;
    color: #0f172a;
}

.section-head p {
    margin: 0;
    max-width: 640px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--rg-text-soft);
}

/* =========================================================
   SLIDER
========================================================= */

.projekt-slider-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 3;
    background: transparent;
}

.projekt-slider-track-wrap {
    width: 100%;
    overflow: hidden;
    padding: 0;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    background: transparent;
}

.projekt-slider-track-wrap.is-dragging {
    cursor: grabbing;
}

.projekt-slider-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    padding: 0 8px;
    box-sizing: border-box;
    background: transparent;
}

.projekt-card {
    flex: 0 0 36%;
    min-width: 36%;
    padding: 0 5px;
    box-sizing: border-box;
    background: transparent;
}

.projekt-card a {
    display: block;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--rg-radius);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transform: scale(0.976);
    opacity: 0.92;
    transition:
        transform 0.36s ease,
        opacity 0.36s ease,
        box-shadow 0.36s ease,
        border-color 0.36s ease,
        background 0.36s ease;
}

.projekt-card.is-active a {
    transform: scale(1);
    opacity: 1;
    background: rgba(255, 255, 255, 0.60);
    box-shadow: var(--rg-shadow-active);
    border-color: rgba(255, 255, 255, 0.90);
}

/* =========================================================
   IMAGE AREA
========================================================= */

.projekt-card__image {
    position: relative;
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: #dbe4ee;
}

.projekt-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.45s ease;
}

.projekt-card a:hover .projekt-card__image img {
    transform: scale(1.035);
}

.projekt-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 23, 42, 0.18) 100%);
    pointer-events: none;
    z-index: 1;
}

/* =========================================================
   PLACEHOLDER IMAGE STYLE
========================================================= */

.projekt-card--placeholder a {
    position: relative;
    overflow: hidden;
}

.projekt-card--placeholder a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.14) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    animation: shimmer 3.8s infinite;
    pointer-events: none;
    z-index: 2;
}

.projekt-card__image--placeholder {
    position: relative;
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: #cbd5e1;
}

.projekt-card__image--placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.projekt-card__image--placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(0, 0, 0, 0.07)),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 193, 7, 0.08) 0px,
            rgba(255, 193, 7, 0.08) 7px,
            transparent 7px,
            transparent 15px
        );
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: soft-light;
}

.projekt-card__image--placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.26) 100%);
    pointer-events: none;
    z-index: 1;
}

.projekt-card__placeholder-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.92);
    color: #111827;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    animation: pulseBadge 2.5s infinite;
}

.projekt-card__placeholder-badge::before {
    content: "✦";
    font-size: 12px;
    line-height: 1;
}

/* =========================================================
   CARD CONTENT
========================================================= */

.projekt-card__content {
    padding: 13px 13px 15px;
}

.projekt-card__content h3 {
    margin: 0 0 7px;
    font-size: clamp(17px, 1.35vw, 22px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #0f172a;
}

.projekt-card__content p {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.68;
    color: #4f5f73;
}

.projekt-card__content span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.projekt-card__content span::after {
    content: "→";
    transition: transform 0.25s ease;
}

.projekt-card a:hover .projekt-card__content span::after {
    transform: translateX(3px);
}

.projekt-card--placeholder .projekt-card__content span::after {
    content: "";
}

/* =========================================================
   ARROWS
========================================================= */

.projekt-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    transition: transform 0.22s ease, background 0.22s ease, opacity 0.22s ease;
    z-index: 5;
}

.projekt-slider-arrow:hover {
    background: rgba(15, 23, 42, 0.98);
}

.projekt-slider-arrow--prev {
    left: 6px;
}

.projekt-slider-arrow--next {
    right: 6px;
}

.projekt-slider-arrow:disabled {
    opacity: 0.28;
    cursor: default;
}

/* =========================================================
   DOTS
========================================================= */

.projekt-slider-dots {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 0 14px;
}

.projekt-slider-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.5);
    cursor: pointer;
    transition: transform 0.24s ease, background 0.24s ease;
}

.projekt-slider-dot.is-active {
    transform: scale(1.15);
    background: #0f172a;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes globalBackgroundDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        transform: translate3d(18px, -14px, 0) scale(1.02);
    }
    50% {
        transform: translate3d(-10px, 20px, 0) scale(1.03);
    }
    75% {
        transform: translate3d(14px, 10px, 0) scale(1.01);
    }
    100% {
        transform: translate3d(-16px, -12px, 0) scale(0.99);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1400px) and (min-width: 1000px) {
    .projekte-hero {
        padding: 146px 22px 34px;
    }

    .section-head {
        padding: 0 22px;
    }

    .projekt-card {
        flex: 0 0 34%;
        min-width: 34%;
    }

    .projekt-card__image,
    .projekt-card__image--placeholder {
        height: 195px;
    }
}

@media (max-width: 1024px) {
    .projekte-hero {
        padding: 138px 18px 30px;
    }

    .projekte-hero h1 {
        font-size: clamp(30px, 6vw, 46px);
    }

    .section-head {
        padding: 0 18px;
    }

    .projekt-card {
        flex: 0 0 60%;
        min-width: 60%;
    }

    .projekt-card__image,
    .projekt-card__image--placeholder {
        height: 205px;
    }

    .projekt-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .projektgalerie-einfach {
        padding-bottom: 68px;
    }

    .projekte-hero {
        padding: 122px 14px 24px;
    }

    .projekte-hero::after {
        width: 86px;
        margin-top: 16px;
    }

    .projekte-hero h1 {
        font-size: clamp(27px, 8vw, 38px);
    }

    .projekte-hero p {
        font-size: 13px;
    }

    .projekt-slider-section {
        padding: 20px 0 26px;
    }

    .section-head {
        padding: 0 14px;
        margin-bottom: 11px;
    }

    .section-head h2 {
        font-size: clamp(20px, 6vw, 27px);
    }

    .section-head p {
        font-size: 12px;
    }

    .projekt-card {
        flex: 0 0 80%;
        min-width: 80%;
        padding: 0 5px;
    }

    .projekt-card a {
        border-radius: var(--rg-radius-sm);
    }

    .projekt-card__image,
    .projekt-card__image--placeholder {
        height: 182px;
    }

    .projekt-card__content {
        padding: 12px;
    }

    .projekt-card__content h3 {
        font-size: 18px;
    }

    .projekt-card__content p,
    .projekt-card__content span {
        font-size: 11.5px;
    }

    .projekt-slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .projekt-card__placeholder-badge {
        top: 10px;
        left: 10px;
        padding: 7px 10px;
        font-size: 10px;
    }
}
