/* Main Project Styles */

/* Design System Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

:root {
    --header-inner-pad-x: 45px;
    --header-width-desktop: min(95vw, 1400px);
}

/* Floating Pill Header Design */
.site-header {
    position: fixed;
    top: 20px;
    /* Floating from top */
    left: 0;
    right: 0;
    margin-inline: auto;
    width: min(95vw, 1400px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(10, 10, 10, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 100px;
    /* Pill shape */
    padding: 10px 0;
    isolation: isolate;
    overflow: hidden;
    --header-stroke: rgba(255, 255, 255, 0.16);
    --header-stroke-width: 1px;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.35s ease, background-color 0.35s ease, backdrop-filter 0.35s ease;
    z-index: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 var(--header-stroke-width) var(--header-stroke);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -18px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 75%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

.site-header.scrolled {
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    padding: 8px 0;
    --header-stroke: rgba(11, 180, 170, 0.5);
    /* Teal glow on scroll */
    --header-stroke-width: 2px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72);
}

.site-header.scrolled::before {
    opacity: 1;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(34px) saturate(0.9);
    -webkit-backdrop-filter: blur(34px) saturate(0.9);
}

.site-header.scrolled::after {
    opacity: 1;
}

/* Home: keep hero video visually bright under the floating header */
body.home .site-header {
    background: rgba(8, 8, 8, 0.32);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: none;
}

body.home .site-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72);
}

/* Home default: keep header transparent/unobtrusive over hero video */
body.home .site-header:not(.scrolled)::before,
body.home .site-header:not(.scrolled)::after {
    opacity: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Home scrolled: allow teal border to appear (remove the block) */
body.home .site-header.scrolled::before {
    opacity: 1;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(34px) saturate(0.9);
    -webkit-backdrop-filter: blur(34px) saturate(0.9);
    box-shadow: inset 0 0 0 2px rgba(11, 180, 170, 0.5);
}

body.home .site-header.scrolled::after {
    opacity: 1;
}

.header-inner {
    position: relative;
    z-index: 1;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 45px;
    /* More room on the sides of the pill */
}

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

.header-center {
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    /* More space between contact and icons */
}

/* Logo Sizing Fix */
.logo a {
    position: relative;
    display: block;
    width: 200px;
    height: 60px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 100%;
    width: auto;
    transition: opacity 0.4s ease;
}

.logo-green {
    opacity: 0;
}

/* Only show green logo on hover for non-touch devices */
@media (hover: hover) {
    .logo:hover .logo-white {
        opacity: 0;
    }

    .logo:hover .logo-green {
        opacity: 1;
    }
}

/* Horizontal Nav Fix */
.nav-list-horizontal {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list-horizontal li a {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: inline-block;
    /* Essential for transform */
}

.nav-list-horizontal li {
    white-space: nowrap;
}

.nav-list-horizontal li a:hover {
    color: #0bb4aa;
}

.btn-cta {
    background: linear-gradient(135deg, #0bb4aa 0%, #089088 100%);
    color: #000 !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(11, 180, 170, 0.4);
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(11, 180, 170, 0.6);
    filter: brightness(1.1);
    color: #000 !important;
    /* Force black text on turquoise bg */
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 2000;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle:hover span {
    background-color: var(--color-accent) !important;
}

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

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

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

/* Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 5%;
    width: 90%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
}

.site-header.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
    max-height: 85vh;
    padding: 30px 20px 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    top: 61px;
    /* Flush with bottom of header */
}

.nav-list-vertical {
    list-style: none;
    text-align: center;
    margin-bottom: 30px;
    /* Reduced */
}

.nav-list-vertical li {
    margin-bottom: 25px;
}

.nav-list-vertical li a {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.nav-list-vertical li a:hover,
.header-social-mobile a:hover {
    color: var(--color-accent) !important;
    transform: translateY(-5px);
    opacity: 1;
}

.header-social-mobile a {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-social a {
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.header-social a:hover,
.logo a:hover,
.nav-list-horizontal li a:hover {
    color: var(--color-accent) !important;
    transform: translateY(-4px);
    opacity: 1;
}

.desktop-only {
    display: flex !important;
}

/* Intermediate Scaling for Laptops/Tablets */
@media (max-width: 1250px) {
    :root {
        --header-inner-pad-x: 10px;
    }

    .site-header {
        width: 96%;
    }

    .header-inner {
        padding: 0 10px;
    }

    .logo a {
        width: 160px;
        height: 50px;
    }

    .nav-list-horizontal {
        gap: 12px;
    }

    .nav-list-horizontal li a {
        font-size: 0.85rem;
    }

    .header-right {
        gap: 5px;
    }

    .btn-cta {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .header-social a {
        font-size: 1rem;
    }
}

/* Mobile Transition */
@media (max-width: 992px) {
    :root {
        --header-inner-pad-x: 15px;
    }

    .site-header {
        top: 10px;
        width: min(94vw, 560px);
        left: 50%;
        transform: translateX(-50%);
        border-radius: 30px;
        padding: 8px 0;
        background: rgba(18, 18, 18, 0.55);
        /* Much more transparent */
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        padding: 0 15px;
        background: transparent !important;
    }

    .desktop-only {
        display: none !important;
    }

    .header-left {
        display: none;
    }

    .header-center {
        justify-content: flex-start;
        flex: 0 0 auto;
    }

    .logo a {
        width: 140px;
        /* Reduced from 200 */
        height: 45px;
    }

    .header-right {
        position: relative;
        flex: 1;
        justify-content: flex-end;
        gap: 10px;
        z-index: 2;
    }

    .btn-cta {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .header-social-mobile {
        display: flex;
        gap: 30px;
        margin-top: 40px;
    }

    .header-social-mobile a {
        color: #fff;
        opacity: 0.8;
    }
}

:root {
    --color-bg-dark: #000000;
    /* Deep Black for Portfolio & Footer */
    --color-bg-soft: #0a0a0a;
    /* Middle Ground for Services */
    --color-bg-surface: #121212;
    /* Elevated for About Card & Special content */
    --accent-teal: var(--color-accent);
    --border-light: rgba(255, 255, 255, 0.1);
    /* Brighter for clear visibility */
    --border-accent: rgba(11, 180, 170, 0.4);
}

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

.bg-dark-soft {
    background-color: var(--color-bg-soft);
}

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

section {
    position: relative;
    border-top: 1px solid var(--border-light);
}

.site-main {
    min-height: 100vh;
}

.page-content-container {
    padding-top: 96px;
    background-color: var(--color-bg);
}

/* Header-banner pages: start directly behind the fixed menu */
body.page-id-53 .page-content-container,
body.page-id-364 .page-content-container,
body.page-id-54 .page-content-container,
body.page-id-576 .page-content-container,
body.page-id-580 .page-content-container,
body.page-id-585 .page-content-container,
body.page-id-3 .page-content-container,
body.page-id-154 .page-content-container,
body.page-kontakt .page-content-container,
body.page-impressum .page-content-container,
body.page-datenschutz .page-content-container {
    padding-top: 0;
}

.home .page-content-container {
    padding-top: 0;
}

/* Apply initial-hidden states only when JS is active */
html.js.motion-ok body.page:not(.home) .page-content-container .entry-content>* {
    opacity: 0;
    visibility: hidden;
}

html.js.motion-ok body.home .hero-title,
html.js.motion-ok body.home .hero-subtitle {
    opacity: 0;
    visibility: hidden;
}

/* Legacy-style page header banners (old site look) */
body.page-id-53 .entry-header,
body.page-id-364 .entry-header,
body.page-id-54 .entry-header,
body.page-id-576 .entry-header,
body.page-id-580 .entry-header,
body.page-id-585 .entry-header,
body.page-id-3 .entry-header,
body.page-id-154 .entry-header,
body.page-kontakt .entry-header,
body.page-impressum .entry-header,
body.page-datenschutz .entry-header {
    position: relative;
    min-height: clamp(285px, 37vw, 500px);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-top: 0;
    padding-right: 0;
    padding-bottom: clamp(22px, 3.4vw, 44px);
    padding-left: calc((100vw - var(--header-width-desktop)) / 2 + var(--header-inner-pad-x));
    margin-bottom: clamp(30px, 4vw, 52px) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    box-shadow: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
}

@media (max-width: 1250px) {

    body.page-id-53 .entry-header,
    body.page-id-364 .entry-header,
    body.page-id-54 .entry-header,
    body.page-id-576 .entry-header,
    body.page-id-580 .entry-header,
    body.page-id-585 .entry-header,
    body.page-id-3 .entry-header,
    body.page-id-154 .entry-header,
    body.page-kontakt .entry-header,
    body.page-impressum .entry-header,
    body.page-datenschutz .entry-header {
        padding-left: calc((100vw - 96vw) / 2 + var(--header-inner-pad-x));
    }
}

@media (max-width: 992px) {

    body.page-id-53 .entry-header,
    body.page-id-364 .entry-header,
    body.page-id-54 .entry-header,
    body.page-id-576 .entry-header,
    body.page-id-580 .entry-header,
    body.page-id-585 .entry-header,
    body.page-id-3 .entry-header,
    body.page-id-154 .entry-header,
    body.page-kontakt .entry-header,
    body.page-impressum .entry-header,
    body.page-datenschutz .entry-header {
        padding-left: calc((100vw - min(94vw, 560px)) / 2 + var(--header-inner-pad-x));
    }
}

body.page-id-53 .page-content-container .container.py-xl,
body.page-id-364 .page-content-container .container.py-xl,
body.page-id-54 .page-content-container .container.py-xl,
body.page-id-576 .page-content-container .container.py-xl,
body.page-id-580 .page-content-container .container.py-xl,
body.page-id-585 .page-content-container .container.py-xl,
body.page-id-3 .page-content-container .container.py-xl,
body.page-id-154 .page-content-container .container.py-xl,
body.page-kontakt .page-content-container .container.py-xl,
body.page-impressum .page-content-container .container.py-xl,
body.page-datenschutz .page-content-container .container.py-xl {
    padding-top: 0;
}

body.page-id-53 .entry-header::before,
body.page-id-364 .entry-header::before,
body.page-id-54 .entry-header::before,
body.page-id-576 .entry-header::before,
body.page-id-580 .entry-header::before,
body.page-id-585 .entry-header::before,
body.page-id-3 .entry-header::before,
body.page-id-154 .entry-header::before,
body.page-kontakt .entry-header::before,
body.page-impressum .entry-header::before,
body.page-datenschutz .entry-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 24%, rgba(0, 0, 0, 0.62) 100%);
    z-index: 0;
}

body.page-id-53 .entry-header .section-title,
body.page-id-364 .entry-header .section-title,
body.page-id-54 .entry-header .section-title,
body.page-id-576 .entry-header .section-title,
body.page-id-580 .entry-header .section-title,
body.page-id-585 .entry-header .section-title,
body.page-id-3 .entry-header .section-title,
body.page-id-154 .entry-header .section-title,
body.page-kontakt .entry-header .section-title,
body.page-impressum .entry-header .section-title,
body.page-datenschutz .entry-header .section-title {
    position: relative;
    left: auto;
    top: auto;
    z-index: 1;
    margin: 0 !important;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 0.96;
    letter-spacing: 0.02em;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

body.page-id-53 .entry-header {
    background-image: url('/wp-content/uploads/2024/10/Uber-mich.jpg');
}

body.page-id-364 .entry-header {
    background-image: url('/wp-content/uploads/2024/10/Leistungen.jpg');
}

body.page-id-54 .entry-header,
body.page-kontakt .entry-header {
    background-image: url('/wp-content/uploads/2024/10/Kontakt.jpg');
}

body.page-id-576 .entry-header {
    background-image: url('/wp-content/uploads/2024/10/Drohnen-Aufnahmen.jpg');
}

body.page-id-585 .entry-header {
    background-image: url('/wp-content/uploads/2024/10/Professionelle-Bearbeitung.jpg');
}

body.page-id-580 .entry-header {
    background-image: url('/wp-content/uploads/2024/10/Drohnen-Dachvermessung.jpg');
}

body.page-id-3 .entry-header,
body.page-id-154 .entry-header,
body.page-impressum .entry-header,
body.page-datenschutz .entry-header {
    background-image: url('/wp-content/uploads/2024/11/Impressum.jpg');
}

body.page-id-53 .entry-header,
body.page-id-364 .entry-header,
body.page-id-54 .entry-header,
body.page-id-576 .entry-header,
body.page-id-580 .entry-header,
body.page-id-585 .entry-header,
body.page-id-3 .entry-header,
body.page-id-154 .entry-header,
body.page-kontakt .entry-header,
body.page-impressum .entry-header,
body.page-datenschutz .entry-header {
    background-position: 50% 42%;
}

/* Keep "Über mich" header image consistently centered */
body.page-id-53 .entry-header {
    background-position: 50% 50%;
}

.py-xl {
    padding-top: 100px;
    padding-bottom: 32px;
}

.section-padding {
    padding-top: clamp(72px, 9vw, 120px);
    padding-bottom: clamp(72px, 9vw, 120px);
}

.section-header {
    margin-bottom: clamp(32px, 5vw, 64px);
}

.mb-xl {
    margin-bottom: clamp(32px, 5vw, 64px);
}

.mb-lg {
    margin-bottom: 50px;
}

/* Force dark background ONLY in subpage content to avoid header issues */
.page-content-container article,
.page-content-container section,
.page-content-container .elementor-section,
.page-content-container .elementor-column,
.page-content-container .elementor-column-wrap,
.page-content-container .elementor-widget-wrap,
.page-content-container .entry-content,
.page-content-container .elementor-background-overlay,
.page-content-container .elementor-background-overlay::before,
.page-content-container .elementor-background-overlay::after,
.page-content-container .elementor-section::before,
.page-content-container .elementor-section::after {
    background-color: transparent !important;
    background-image: none !important;
}

/* Specifically target any element trying to load the background texture */
[style*="background.jpg"],
[style*="background-"],
.elementor-motion-effects-layer {
    background-image: none !important;
    background-color: transparent !important;
}

.page-content-container .elementor-section-filled {
    background-color: transparent !important;
}

/* Ensure body and main stay pure black + prevent horizontal scroll on mobile */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body,
.site-main,
.page-content-container {
    background-color: #000 !important;
}

/* Hero Section */
/* Portfolio Grid */
.portfolio-section {
    padding: clamp(84px, 10vw, 130px) 0;
    background: #000;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 80px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 5px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

@media (max-width: 600px) {
    .section-title {
        letter-spacing: 2px;
    }
}

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

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

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

    .portfolio-grid {
        gap: 24px;
    }
}

/* Video Overlay Styles */
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(11, 180, 170, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    /* Visible by default */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 5;
    pointer-events: none;
    /* Let clicks pass to parent article */
}

.portfolio-item:hover .video-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 40px rgba(11, 180, 170, 0.4);
}

.play-icon-triangle {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #000;
    margin-left: 6px;
    /* Optical centering */
}

.portfolio-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0a0a0a;
    border-radius: 12px;
}

.portfolio-thumbnail {
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

.portfolio-item:hover .portfolio-thumbnail {
    transform: scale(1.03);
    /* Subtle scale for smoothness */
}

.portfolio-item.placeholder {
    opacity: 0.5;
}

/* Video Item Specifics */
.video-item {
    cursor: pointer;
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures filling without stretching */
    display: block;
}

/* Video Modal Selection */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    /* Near solid black for better performance */
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    background: #000;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.video-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #0bb4aa;
}

.modal-body {
    width: 100%;
    height: 100%;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.portfolio-item:hover .portfolio-thumbnail {
    transform: scale(1.05);
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #111, #222);
}

/* Portfolio Hover Detail Refinements */
.portfolio-item:hover .portfolio-thumbnail {
    transform: scale(1.03);
    /* Maintain subtle zoom */
}

/* Responsive Mobile */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    .site-header .vertical-nav {
        width: 100%;
        height: 60px;
        flex-direction: row;
        padding: 0 20px;
        border-right: none;
        border-bottom: 1px solid var(--color-glass);
    }

    .site-main {
        margin-left: 0;
        margin-top: 0;
    }

    .hero-overlay {
        left: 20px;
    }
}

/* --- Hero Section Fix --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    z-index: 10;
    background: #000;
    will-change: transform;
    transform: translateZ(0);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
}

.hero-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* Über dem Poster */
    opacity: 0;
    /* Startet unsichtbar */
    transition: opacity 0.15s ease-out;
    /* Schneller Cross-fade */
}

/* Wird durch JS hinzugefügt, sobald Video läuft */
.hero-video.is-playing {
    opacity: 1;
}

/* Poster img: bleibt statisch im Hintergrund, damit Abweichungen verdeckt werden */
.hero-poster {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    /* Hinter dem Video */
}

.mobile-video {
    display: none;
}

@media (max-width: 768px) {
    .desktop-video {
        display: none;
    }

    .mobile-video {
        display: block;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px !important;
    padding: 0 40px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: -3px;
    color: #fff;
    text-shadow: none;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: #e0e0e0;
    max-width: 550px;
    line-height: 1.4;
    border-left: 3px solid var(--accent-teal);
    padding-left: 14px;
}

.hero-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    z-index: 3;
    width: auto;
    text-align: left;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .hero-content {
        bottom: 5%;
        left: 20px;
        padding-right: 20px;
    }

    .hero-video {
        /* Verschiebt den Video-Ausschnitt auf Handys etwas nach links */
        object-position: 75% 50%;
    }
}

/* --- Services Section Refinement --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: clamp(20px, 4vw, 44px);
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 45px;
    border-radius: 15px;
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
    border-color: rgba(11, 180, 170, 0.4);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.42), 0 0 14px rgba(11, 180, 170, 0.08);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-teal);
    margin-top: 25px;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(11, 180, 170, 0.6);
}

.service-icon {
    color: var(--accent-teal);
    margin-bottom: 35px;
    filter: drop-shadow(0 0 15px rgba(11, 180, 170, 0.3));
    transition: transform 0.5s ease, color 0.3s ease;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(11, 180, 170, 0.55);
    border-radius: 12px;
    background: rgba(11, 180, 170, 0.05);
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card:hover .service-icon {
    transform: scale(1.04) rotate(-2deg);
}

.service-title {
    font-size: 1.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #fff;
    line-height: 1.1;
}

.service-desc {
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.service-link {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.service-link:hover {
    color: #fff;
    border-bottom-color: var(--accent-teal);
    gap: 18px;
}

/* Responsive Services */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

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

    .service-card {
        padding: 40px 30px;
    }
}

/* --- Über mich Card --- */
/* --- Leistungen Cards (Page 364) --- */
body.page-id-364 .entry-content .wp-block-columns {
    gap: clamp(20px, 2.6vw, 34px);
}

body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    padding: clamp(18px, 2.2vw, 26px) !important;
    min-height: clamp(360px, 38vw, 470px) !important;
    align-items: flex-end;
    justify-content: flex-start;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s ease, border-color 0.45s ease;
    isolation: isolate;
}

body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 24%, rgba(0, 0, 0, 0.38) 100%);
    pointer-events: none;
    z-index: 1;
}

body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    color: #fff !important;
}

body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position .wp-block-cover__image-background {
    filter: brightness(1.12) contrast(1.06) saturate(1.04);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position .wp-block-cover__background {
    opacity: 0.08 !important;
}

body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position:hover {
    transform: translateY(-3px);
    border-color: rgba(11, 180, 170, 0.4);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.42), 0 0 14px rgba(11, 180, 170, 0.08);
}

body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position:hover .wp-block-cover__image-background {
    transform: scale(1.02);
}

body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position h3.wp-block-heading {
    margin: 0 0 16px 0 !important;
    color: #fff !important;
    font-size: clamp(1.35rem, 1.9vw, 1.78rem) !important;
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: 0;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.24);
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-wrap: balance;
    max-width: 100%;
}

body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position .wp-block-buttons {
    margin-top: 10px !important;
}

body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position .wp-block-button__link {
    display: inline-block;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
    font-size: 1.02rem !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 12px 24px !important;
    text-decoration: none !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position .wp-block-button__link:hover {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(11, 180, 170, 0.35);
}

@media (max-width: 900px) {
    body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position {
        min-height: 420px !important;
    }

    body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position h3.wp-block-heading {
        font-size: clamp(1.22rem, 2.7vw, 1.52rem) !important;
        line-height: 1.14;
    }

}

@media (max-width: 768px) {
    body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position {
        min-height: 360px !important;
        border-radius: 18px;
    }

    body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position h3.wp-block-heading {
        font-size: clamp(1.12rem, 6.1vw, 1.36rem) !important;
        margin-bottom: 12px !important;
        line-height: 1.16;
    }

    body.page-id-364 .entry-content .wp-block-cover.has-custom-content-position .wp-block-button__link {
        font-size: 0.98rem !important;
        padding: 10px 20px !important;
    }

}

.about-card-container {
    display: flex;
    justify-content: center;
    padding: 0;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 80px 60px;
    max-width: 1120px;
    width: 100%;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    align-items: center;
    gap: clamp(28px, 5vw, 56px);
}

.about-media {
    position: relative;
}

.about-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content p {
    font-size: 1.18rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 680px;
    margin-left: 0;
    margin-right: 0;
}

.about-content .btn-about {
    display: inline-block;
    margin-top: 4px;
}

/* --- Footer Styles --- */
.site-footer {
    background: #050505;
    padding: clamp(64px, 8vw, 92px) 0 clamp(46px, 6vw, 64px);
    border-top: none;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.footer-columns {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.footer-column {
    max-width: 760px;
}

.footer-heading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    color: #fff;
}

.footer-column p {
    color: #777;
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

.btn-footer {
    display: inline-block;
    white-space: nowrap;
}

.footer-bottom {
    margin-top: clamp(30px, 4vw, 48px);
    padding-top: clamp(22px, 3vw, 34px);
    border-top: 1px solid var(--accent-teal);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-legal .copyright-link,
.footer-legal a {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-legal a:hover,
.footer-legal .copyright-link:hover {
    color: var(--color-accent) !important;
    transform: translateY(-4px);
    opacity: 1;
}

.copyright {
    color: #444;
    font-size: 0.85rem;
    margin-top: 15px;
}

.footer-credits {
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.footer-credits a {
    color: #888;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-credits a:hover {
    color: var(--accent-teal);
}

@media (max-width: 850px) {
    .footer-heading-row {
        flex-direction: column;
        gap: 16px;
    }

    .about-card {
        padding: 50px 30px;
        border-radius: 20px;
        text-align: center;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-media {
        max-width: 320px;
        margin: 0 auto;
    }

    .about-content p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .section-header,
    .mb-xl {
        margin-bottom: 30px;
    }

    .portfolio-section {
        padding: 76px 0;
    }
}

/* --- Legal Pages Styling --- */
.legal-content h2,
.legal-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--accent-teal);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-content p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.legal-content li {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Impressum: white text, green links only */
body.page-id-3 .legal-content h2,
body.page-id-3 .legal-content h3,
body.page-id-154 .legal-content h2,
body.page-id-154 .legal-content h3,
body.page-impressum .legal-content h2,
body.page-impressum .legal-content h3,
body.page-id-3 .legal-content p,
body.page-id-154 .legal-content p,
body.page-impressum .legal-content p,
body.page-id-3 .legal-content li,
body.page-id-154 .legal-content li,
body.page-impressum .legal-content li,
body.page-id-3 .legal-content strong,
body.page-id-154 .legal-content strong,
body.page-impressum .legal-content strong {
    color: #fff !important;
}

body.page-id-3 .legal-content a,
body.page-id-154 .legal-content a,
body.page-impressum .legal-content a {
    color: var(--color-accent) !important;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

body.page-id-3 .legal-content a:hover,
body.page-id-154 .legal-content a:hover,
body.page-impressum .legal-content a:hover {
    color: #15d8ce !important;
    opacity: 1;
}

/* Allow copying e-mail addresses even if global copy-protection styles/scripts exist */
body.page-id-3 .legal-content a[href^="mailto:"],
body.page-id-154 .legal-content a[href^="mailto:"],
body.page-impressum .legal-content a[href^="mailto:"],
body.page-datenschutz .legal-content a[href^="mailto:"] {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
    cursor: text;
}

.page-content-container {
    padding-top: 140px;
    /* Offset for fixed header */
    padding-bottom: 24px;
}

body.page .entry-content>.wp-block-spacer:last-child {
    display: none !important;
}

body.page .entry-content>*:last-child {
    margin-bottom: 0 !important;
}

body.page:not(.home) .site-footer {
    padding-top: clamp(42px, 5vw, 58px);
}

body.page:not(.home) .footer-columns {
    margin-bottom: clamp(24px, 3vw, 38px);
}

body.page:not(.home) .footer-bottom {
    margin-top: clamp(18px, 2.4vw, 28px);
    padding-top: clamp(16px, 2vw, 24px);
}

/* --- Ueber Mich Page --- */
body.page-id-53 .entry-content,
body.page-ueber-mich .entry-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px 80px;
}

body.page-id-53 .entry-content>.wp-block-cover.has-parallax,
body.page-ueber-mich .entry-content>.wp-block-cover.has-parallax {
    min-height: clamp(460px, 78vh, 860px) !important;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

body.page-id-53 .entry-content>.wp-block-cover.has-parallax .wp-block-cover__background,
body.page-ueber-mich .entry-content>.wp-block-cover.has-parallax .wp-block-cover__background {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.4));
    opacity: 1 !important;
}

body.page-id-53 .entry-content>.wp-block-cover.has-parallax .wp-block-cover__inner-container,
body.page-ueber-mich .entry-content>.wp-block-cover.has-parallax .wp-block-cover__inner-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 56px) !important;
}

body.page-id-53 .entry-content .wp-block-columns,
body.page-ueber-mich .entry-content .wp-block-columns {
    align-items: flex-start !important;
    gap: clamp(24px, 4vw, 52px) !important;
}

body.page-id-53 .entry-content .wp-block-column,
body.page-ueber-mich .entry-content .wp-block-column {
    min-width: 0;
}

body.page-id-53 .entry-content .wp-block-column.is-vertically-aligned-center,
body.page-ueber-mich .entry-content .wp-block-column.is-vertically-aligned-center {
    align-self: flex-start !important;
}

body.page-id-53 .entry-content .wp-block-image img,
body.page-ueber-mich .entry-content .wp-block-image img {
    display: block;
    width: 100%;
    max-width: 430px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48);
}

body.page-id-53 .entry-content .wp-block-column>.wp-block-image:first-child,
body.page-ueber-mich .entry-content .wp-block-column>.wp-block-image:first-child {
    width: 100%;
    display: flex;
    justify-content: center;
}

body.page-id-53 .entry-content .wp-block-column>.wp-block-image:first-child,
body.page-ueber-mich .entry-content .wp-block-column>.wp-block-image:first-child,
body.page-id-53 .entry-content .wp-block-column>h1:first-child,
body.page-ueber-mich .entry-content .wp-block-column>h1:first-child,
body.page-id-53 .entry-content .wp-block-column>p:first-child,
body.page-ueber-mich .entry-content .wp-block-column>p:first-child {
    margin-top: 0 !important;
}

body.page-id-53 .entry-content h1.wp-block-heading,
body.page-ueber-mich .entry-content h1.wp-block-heading {
    font-size: clamp(2rem, 5.2vw, 4rem);
    line-height: 0.98;
    letter-spacing: 0.02em;
    margin-bottom: 16px !important;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

body.page-id-53 .entry-content p,
body.page-ueber-mich .entry-content p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.3vw, 1.14rem);
    line-height: 1.72;
    margin: 0 0 16px;
}

body.page-id-53 .entry-content .wp-block-cover .wp-block-spacer,
body.page-ueber-mich .entry-content .wp-block-cover .wp-block-spacer {
    height: 0 !important;
}

@media (max-width: 900px) {

    body.page-id-53 .entry-content,
    body.page-ueber-mich .entry-content {
        padding: 0 16px 64px;
    }

    body.page-id-53 .entry-content>.wp-block-cover.has-parallax,
    body.page-ueber-mich .entry-content>.wp-block-cover.has-parallax {
        min-height: auto !important;
        border-radius: 20px;
    }

    body.page-id-53 .entry-content .wp-block-columns,
    body.page-ueber-mich .entry-content .wp-block-columns {
        align-items: flex-start !important;
    }

    body.page-id-53 .entry-content .wp-block-image img,
    body.page-ueber-mich .entry-content .wp-block-image img {
        max-width: 320px;
    }
}

/* --- Leistungen Subpages: Drohnen Aufnahmen / Bearbeitung / Dachvermessung --- */
body.page-id-576 .entry-content,
body.page-id-580 .entry-content,
body.page-id-585 .entry-content,
body.page-drohnen-aufnahmen .entry-content,
body.page-professionelle-bearbeitung .entry-content,
body.page-drohnen-dachvermessung .entry-content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 22px 80px;
}

body.page-id-576 .entry-content .wp-block-cover.has-parallax,
body.page-id-580 .entry-content .wp-block-cover.has-parallax,
body.page-id-585 .entry-content .wp-block-cover.has-parallax,
body.page-drohnen-aufnahmen .entry-content .wp-block-cover.has-parallax,
body.page-professionelle-bearbeitung .entry-content .wp-block-cover.has-parallax,
body.page-drohnen-dachvermessung .entry-content .wp-block-cover.has-parallax {
    min-height: clamp(340px, 52vh, 520px) !important;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 65px rgba(0, 0, 0, 0.45);
    margin-bottom: 56px !important;
}

body.page-id-576 .entry-content .wp-block-cover.has-parallax .wp-block-cover__background,
body.page-id-580 .entry-content .wp-block-cover.has-parallax .wp-block-cover__background,
body.page-id-585 .entry-content .wp-block-cover.has-parallax .wp-block-cover__background,
body.page-drohnen-aufnahmen .entry-content .wp-block-cover.has-parallax .wp-block-cover__background,
body.page-professionelle-bearbeitung .entry-content .wp-block-cover.has-parallax .wp-block-cover__background,
body.page-drohnen-dachvermessung .entry-content .wp-block-cover.has-parallax .wp-block-cover__background {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.34));
    opacity: 1 !important;
}

body.page-id-576 .entry-content .wp-block-cover.has-parallax .wp-block-cover__inner-container,
body.page-id-580 .entry-content .wp-block-cover.has-parallax .wp-block-cover__inner-container,
body.page-id-585 .entry-content .wp-block-cover.has-parallax .wp-block-cover__inner-container,
body.page-drohnen-aufnahmen .entry-content .wp-block-cover.has-parallax .wp-block-cover__inner-container,
body.page-professionelle-bearbeitung .entry-content .wp-block-cover.has-parallax .wp-block-cover__inner-container,
body.page-drohnen-dachvermessung .entry-content .wp-block-cover.has-parallax .wp-block-cover__inner-container {
    padding: clamp(28px, 6vw, 56px) !important;
}

body.page-id-576 .entry-content .wp-block-cover.has-parallax h1,
body.page-id-580 .entry-content .wp-block-cover.has-parallax h1,
body.page-id-585 .entry-content .wp-block-cover.has-parallax h1,
body.page-drohnen-aufnahmen .entry-content .wp-block-cover.has-parallax h1,
body.page-professionelle-bearbeitung .entry-content .wp-block-cover.has-parallax h1,
body.page-drohnen-dachvermessung .entry-content .wp-block-cover.has-parallax h1 {
    font-size: clamp(2rem, 5.2vw, 4rem);
    line-height: 0.98;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px !important;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

body.page-id-576 .entry-content p,
body.page-id-580 .entry-content p,
body.page-id-585 .entry-content p,
body.page-drohnen-aufnahmen .entry-content p,
body.page-professionelle-bearbeitung .entry-content p,
body.page-drohnen-dachvermessung .entry-content p {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    line-height: 1.75;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

body.page-id-576 .entry-content h2,
body.page-id-580 .entry-content h2,
body.page-id-585 .entry-content h2,
body.page-drohnen-aufnahmen .entry-content h2,
body.page-professionelle-bearbeitung .entry-content h2,
body.page-drohnen-dachvermessung .entry-content h2 {
    margin-top: 54px;
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.page-id-576 .entry-content .wp-block-columns,
body.page-id-580 .entry-content .wp-block-columns,
body.page-id-585 .entry-content .wp-block-columns,
body.page-drohnen-aufnahmen .entry-content .wp-block-columns,
body.page-professionelle-bearbeitung .entry-content .wp-block-columns,
body.page-drohnen-dachvermessung .entry-content .wp-block-columns {
    align-items: flex-start !important;
}

body.page-id-576 .entry-content .wp-block-columns .wp-block-column>h2:first-child,
body.page-id-580 .entry-content .wp-block-columns .wp-block-column>h2:first-child,
body.page-id-585 .entry-content .wp-block-columns .wp-block-column>h2:first-child,
body.page-drohnen-aufnahmen .entry-content .wp-block-columns .wp-block-column>h2:first-child,
body.page-professionelle-bearbeitung .entry-content .wp-block-columns .wp-block-column>h2:first-child,
body.page-drohnen-dachvermessung .entry-content .wp-block-columns .wp-block-column>h2:first-child {
    margin-top: 0;
}

body.page-id-576 .entry-content .wp-block-columns .wp-block-column>p:first-of-type,
body.page-id-580 .entry-content .wp-block-columns .wp-block-column>p:first-of-type,
body.page-id-585 .entry-content .wp-block-columns .wp-block-column>p:first-of-type,
body.page-drohnen-aufnahmen .entry-content .wp-block-columns .wp-block-column>p:first-of-type,
body.page-professionelle-bearbeitung .entry-content .wp-block-columns .wp-block-column>p:first-of-type,
body.page-drohnen-dachvermessung .entry-content .wp-block-columns .wp-block-column>p:first-of-type {
    margin-top: 0;
}

body.page-id-576 .entry-content .wp-block-buttons .wp-block-button__link,
body.page-id-580 .entry-content .wp-block-buttons .wp-block-button__link,
body.page-id-585 .entry-content .wp-block-buttons .wp-block-button__link,
body.page-drohnen-aufnahmen .entry-content .wp-block-buttons .wp-block-button__link,
body.page-professionelle-bearbeitung .entry-content .wp-block-buttons .wp-block-button__link,
body.page-drohnen-dachvermessung .entry-content .wp-block-buttons .wp-block-button__link {
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 12px 24px !important;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, color 0.35s ease;
}

body.page-id-576 .entry-content .wp-block-buttons .wp-block-button__link:hover,
body.page-id-580 .entry-content .wp-block-buttons .wp-block-button__link:hover,
body.page-id-585 .entry-content .wp-block-buttons .wp-block-button__link:hover,
body.page-drohnen-aufnahmen .entry-content .wp-block-buttons .wp-block-button__link:hover,
body.page-professionelle-bearbeitung .entry-content .wp-block-buttons .wp-block-button__link:hover,
body.page-drohnen-dachvermessung .entry-content .wp-block-buttons .wp-block-button__link:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent) !important;
    color: var(--color-accent) !important;
}

body.page-id-576 .entry-content .wp-block-image img,
body.page-id-580 .entry-content .wp-block-image img,
body.page-id-585 .entry-content .wp-block-image img,
body.page-drohnen-aufnahmen .entry-content .wp-block-image img,
body.page-professionelle-bearbeitung .entry-content .wp-block-image img,
body.page-drohnen-dachvermessung .entry-content .wp-block-image img {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

@media (max-width: 900px) {

    body.page-id-576 .entry-content,
    body.page-id-580 .entry-content,
    body.page-id-585 .entry-content,
    body.page-drohnen-aufnahmen .entry-content,
    body.page-professionelle-bearbeitung .entry-content,
    body.page-drohnen-dachvermessung .entry-content {
        padding: 0 16px 64px;
    }

    body.page-id-576 .entry-content .wp-block-cover.has-parallax,
    body.page-id-580 .entry-content .wp-block-cover.has-parallax,
    body.page-id-585 .entry-content .wp-block-cover.has-parallax,
    body.page-drohnen-aufnahmen .entry-content .wp-block-cover.has-parallax,
    body.page-professionelle-bearbeitung .entry-content .wp-block-cover.has-parallax,
    body.page-drohnen-dachvermessung .entry-content .wp-block-cover.has-parallax {
        border-radius: 20px;
        margin-bottom: 36px !important;
    }
}

/* --- Subpage Spacing Rhythm (Leistungs-Unterseiten) --- */
body.page-id-576 .entry-content>*+*,
body.page-id-580 .entry-content>*+*,
body.page-id-585 .entry-content>*+*,
body.page-drohnen-aufnahmen .entry-content>*+*,
body.page-professionelle-bearbeitung .entry-content>*+*,
body.page-drohnen-dachvermessung .entry-content>*+* {
    margin-top: clamp(22px, 3vw, 38px);
}

body.page-id-576 .entry-content .wp-block-cover.has-parallax+*,
body.page-id-580 .entry-content .wp-block-cover.has-parallax+*,
body.page-id-585 .entry-content .wp-block-cover.has-parallax+*,
body.page-drohnen-aufnahmen .entry-content .wp-block-cover.has-parallax+*,
body.page-professionelle-bearbeitung .entry-content .wp-block-cover.has-parallax+*,
body.page-drohnen-dachvermessung .entry-content .wp-block-cover.has-parallax+* {
    margin-top: clamp(26px, 3.4vw, 42px);
}

body.page-id-576 .entry-content .wp-block-columns,
body.page-id-580 .entry-content .wp-block-columns,
body.page-id-585 .entry-content .wp-block-columns,
body.page-drohnen-aufnahmen .entry-content .wp-block-columns,
body.page-professionelle-bearbeitung .entry-content .wp-block-columns,
body.page-drohnen-dachvermessung .entry-content .wp-block-columns {
    gap: clamp(22px, 3vw, 44px) !important;
    margin-top: clamp(24px, 3vw, 40px) !important;
    margin-bottom: clamp(18px, 2.4vw, 30px) !important;
}

body.page-id-576 .entry-content .wp-block-columns .wp-block-column>*+*,
body.page-id-580 .entry-content .wp-block-columns .wp-block-column>*+*,
body.page-id-585 .entry-content .wp-block-columns .wp-block-column>*+*,
body.page-drohnen-aufnahmen .entry-content .wp-block-columns .wp-block-column>*+*,
body.page-professionelle-bearbeitung .entry-content .wp-block-columns .wp-block-column>*+*,
body.page-drohnen-dachvermessung .entry-content .wp-block-columns .wp-block-column>*+* {
    margin-top: 14px;
}

body.page-id-576 .entry-content .wp-block-columns .wp-block-column>.wp-block-image+h2,
body.page-id-580 .entry-content .wp-block-columns .wp-block-column>.wp-block-image+h2,
body.page-id-585 .entry-content .wp-block-columns .wp-block-column>.wp-block-image+h2,
body.page-drohnen-aufnahmen .entry-content .wp-block-columns .wp-block-column>.wp-block-image+h2,
body.page-professionelle-bearbeitung .entry-content .wp-block-columns .wp-block-column>.wp-block-image+h2,
body.page-drohnen-dachvermessung .entry-content .wp-block-columns .wp-block-column>.wp-block-image+h2 {
    margin-top: 0 !important;
}

body.page-id-576 .entry-content .wp-block-columns .wp-block-column>h2+p,
body.page-id-580 .entry-content .wp-block-columns .wp-block-column>h2+p,
body.page-id-585 .entry-content .wp-block-columns .wp-block-column>h2+p,
body.page-drohnen-aufnahmen .entry-content .wp-block-columns .wp-block-column>h2+p,
body.page-professionelle-bearbeitung .entry-content .wp-block-columns .wp-block-column>h2+p,
body.page-drohnen-dachvermessung .entry-content .wp-block-columns .wp-block-column>h2+p {
    margin-top: 12px !important;
}

/* Lock body scroll while mobile menu/video modal is open */
body.no-scroll {
    overflow: hidden;
}

body.page-id-576 .entry-content .wp-block-buttons,
body.page-id-580 .entry-content .wp-block-buttons,
body.page-id-585 .entry-content .wp-block-buttons,
body.page-drohnen-aufnahmen .entry-content .wp-block-buttons,
body.page-professionelle-bearbeitung .entry-content .wp-block-buttons,
body.page-drohnen-dachvermessung .entry-content .wp-block-buttons {
    margin-top: 20px !important;
}

body.page-id-576 .entry-content .wp-block-spacer,
body.page-id-580 .entry-content .wp-block-spacer,
body.page-id-585 .entry-content .wp-block-spacer,
body.page-drohnen-aufnahmen .entry-content .wp-block-spacer,
body.page-professionelle-bearbeitung .entry-content .wp-block-spacer,
body.page-drohnen-dachvermessung .entry-content .wp-block-spacer {
    height: clamp(18px, 2.4vw, 28px) !important;
}

@media (max-width: 900px) {

    body.page-id-576 .entry-content>*+*,
    body.page-id-580 .entry-content>*+*,
    body.page-id-585 .entry-content>*+*,
    body.page-drohnen-aufnahmen .entry-content>*+*,
    body.page-professionelle-bearbeitung .entry-content>*+*,
    body.page-drohnen-dachvermessung .entry-content>*+* {
        margin-top: 20px;
    }

    body.page-id-576 .entry-content .wp-block-columns,
    body.page-id-580 .entry-content .wp-block-columns,
    body.page-id-585 .entry-content .wp-block-columns,
    body.page-drohnen-aufnahmen .entry-content .wp-block-columns,
    body.page-professionelle-bearbeitung .entry-content .wp-block-columns,
    body.page-drohnen-dachvermessung .entry-content .wp-block-columns {
        margin-top: 22px !important;
        margin-bottom: 16px !important;
    }
}

/* Mobile header visibility fallback */
@media (max-width: 992px) {
    .site-header {
        overflow: visible !important;
    }

    .header-inner,
    .header-center,
    .header-right,
    .logo,
    .logo a,
    .btn-cta,
    .mobile-toggle {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mobile-toggle {
        display: flex !important;
        position: relative !important;
        z-index: 10050 !important;
    }

    .mobile-toggle span {
        background: #fff !important;
    }

    .header-right {
        position: relative !important;
        z-index: 10040 !important;
    }
}