/* Fonts */
:root {
    --default-font: "Inter", sans-serif;
    --heading-font: "Inter", sans-serif;
    --nav-font: "Inter", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
    --background-color: #f5f5f5; /* Background color for the entire website, including individual sections */
    --hero-background-color: #d3d1d1; /* Background color for the entire hero/intro section */
    --background-color-dark: #f0efef;
    --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
    --heading-color: #282828; /* Color for headings, subheadings and title throughout the website */
    --accent-color: #0b6344; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
    --accent-color-dark: #073a28; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
    --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
    --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
    --light-bg-color: #F5F5F5;


    /* Nav specific */
    --nav-color: #2d2e2e;
    --nav-hover-color: #1a3a32;
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
    --nav-color: #2d2e2e; /* The default color of the main navmenu links */
    --nav-hover-color: #1a3a32; /* Applied to main navmenu links when they are hovered over or active */
    --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
    --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
    --nav-dropdown-color: #2d2e2e; /* Used for navigation links of the dropdown items in the navigation menu. */
    --nav-dropdown-hover-color: #1a3a32; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
    --header-height: 76px;
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
    --background-color: #f9f9f9;
    --surface-color: #ffffff;
}

.dark-background {
    --background-color: #060606;
    --default-color: #444444;
    --heading-color: #444444;
    --surface-color: #252525;
    --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
    scroll-behavior: smooth;
}

.container-m800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.heading-bold {
    font-weight: 600;
}

.text-left {
    text-align: left;
}

.container-center-w800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}


/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
    display: none;
    background: #df1529;
    color: #ffffff;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.php-email-form .sent-message {
    display: none;
    color: #ffffff;
    background: #059652;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.php-email-form .loading {
    display: none;
    background: var(--surface-color);
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
}

.php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid var(--accent-color);
    border-top-color: var(--surface-color);
    animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Global Header — base styles (all screen sizes)
--------------------------------------------------------------*/
.header {
    --background-color: #ffffff;
    background-color: var(--background-color);
    color: var(--default-color);
    transition: all 0.3s ease;
    z-index: 997;
    border-bottom: 1px solid #eeeeee;
    position: fixed;
    top: 0;
    width: 100%;
}

.header-scrolled {
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.08);
    --background-color: rgba(255, 255, 255, 0.97);
    background-color: var(--background-color);
}

/* Hamburger toggle — hidden by default, shown only on mobile */
.mobile-nav-toggle {
    display: none;
}

/*--------------------------------------------------------------
# Mobile Layout  ≤768px
# ┌─────────────────────────────────────┐
# │  [phone icon]   [BIG LOGO]   [☰]   │
# └─────────────────────────────────────┘
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .header {
        padding: 8px 0;
    }

    .header .container-fluid {
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* left | center | right */
        align-items: center;
        padding-left: 16px;
        padding-right: 16px;
        min-height: 76px;
    }

    /* Left slot — CTA as compact icon button */
    .header-right {
        display: flex;
        align-items: center;
        /* Space between the icon and the mobile menu toggle */
        gap: clamp(10px, 2vw, 20px);
    }

    .btn-cta-icon {
        /* DESKTOP: Proper size to match the visual weight of the text links */
        font-size: 1.6rem;
        line-height: 0;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease;
        text-decoration: none !important;
        color: var(--heading-color);
    }

    .btn-cta-icon a {
        color: var(--heading-color) !important;
    }

    .btn-cta-icon:hover {
        color: var(--accent-color);
        /* No movement or scaling per technical guidelines */
    }

    /* TABLET & MOBILE ADJUSTMENTS */
    @media (max-width: 991px) {
        .btn-cta-icon {
            /* Slightly larger on mobile for easier finger tapping (UX standard) */
            font-size: 1.8rem;
            margin-right: 5px;
        }

        .btn-cta-icon a {
            color: var(--heading-color) !important;
        }

    }

    /* Ensure the Bootstrap icon itself doesn't carry extra margin */
    .btn-cta-icon i::before {
        line-height: 1;
        vertical-align: middle;
    }

    /* Center slot — Logo */
    .header .logo {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header .logo img {
        max-height: 80px;
        min-height: 80px;
        width: auto;
        object-fit: contain;
        transition: max-height 0.3s ease, min-height 0.3s ease;
    }

    .header-scrolled .logo img {
        max-height: 48px;
        min-height: 48px;
    }

    /* CTA as icon-only circle on mobile */
    .btn-getstarted {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0;
        font-size: 0; /* hide text */
        position: relative;
    }

    /* Phone icon via Bootstrap Icons pseudo-element */
    .btn-getstarted::before {
        content: "\F5BF";
        font-family: "bootstrap-icons";
        font-size: 18px;
        color: var(--contrast-color, #ffffff);
    }

    /* Right slot — hamburger */
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        grid-column: 3;
        font-size: 28px;
        cursor: pointer;
        color: var(--nav-color, #2d2e2e);
        line-height: 1;
        transition: color 0.3s;
        background: none;
        border: none;
        padding: 4px;
    }

    .mobile-nav-toggle:hover {
        color: var(--nav-hover-color, #1a3a32);
    }

    /* Slide-in nav panel */
    .navmenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 85vw);
        height: 100vh;
        background: var(--nav-mobile-background-color, #ffffff);
        transition: right 0.35s ease;
        z-index: 9998;
        padding-top: 80px;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    }

    .mobile-nav-active .navmenu {
        right: 0;
    }

    /* Backdrop overlay */
    .mobile-nav-active .header::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 9997;
    }

    /* Close X when nav is open */
    .mobile-nav-active .mobile-nav-toggle {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 9999;
        color: var(--nav-color, #2d2e2e);
        font-size: 30px;
    }

    /* Nav list */
    .navmenu ul {
        display: block;
        padding: 0 20px;
        list-style: none;
        margin: 0;
    }

    .navmenu li {
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .navmenu a,
    .navmenu a:focus {
        font-family: var(--nav-font, "Poppins", sans-serif);
        font-size: 16px;
        font-weight: 500;
        color: var(--nav-dropdown-color, #2d2e2e);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 4px;
        text-decoration: none;
        transition: color 0.3s;
    }

    .navmenu a.active,
    .navmenu a:hover {
        color: var(--nav-dropdown-hover-color, #1a3a32);
    }

    .navmenu a i {
        font-size: 12px;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: color-mix(in srgb, var(--accent-color, #009961), transparent 90%);
        color: var(--nav-dropdown-color, #2d2e2e);
        transition: transform 0.3s, background 0.3s, color 0.3s;
        flex-shrink: 0;
    }

    /* Dropdown — mobile accordion */
    .navmenu .dropdown ul {
        display: none;
        padding: 0 0 0 16px;
        margin: 0 0 8px;
        list-style: none;
        background-color: var(--nav-dropdown-background-color, #ffffff);
    }

    .navmenu .dropdown ul li {
        border-bottom: none;
    }

    .navmenu .dropdown ul a {
        font-size: 14px;
        padding: 10px 4px;
        color: var(--nav-dropdown-color, #2d2e2e);
    }

    .navmenu .dropdown ul a:hover {
        color: var(--nav-dropdown-hover-color, #1a3a32);
    }

    .navmenu .active-dropdown > ul {
        display: block;
    }

    .navmenu .active-dropdown > a i {
        transform: rotate(180deg);
        background: color-mix(in srgb, var(--accent-color, #009961), transparent 85%);
        color: var(--nav-hover-color, #1a3a32);
    }
}

/*--------------------------------------------------------------
# Tablet & Desktop Layout  ≥769px
# ┌──────────────────────────────────────────────────────────┐
# │  [LOGO]        [Nav  Menu  Items]        [CTA Button]   │
# └──────────────────────────────────────────────────────────┘
--------------------------------------------------------------*/
@media (min-width: 769px) {
    .header {
        padding: 0;
    }

    .header .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 80px;
        padding-left: clamp(12px, 2vw, 32px);
        padding-right: clamp(12px, 2vw, 32px);
    }

    /* Logo — left */
    .header .logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    .header .logo img {
        max-height: clamp(60px, 8vw, 110px);
        min-height: clamp(60px, 8vw, 110px);
        width: auto;
        object-fit: contain;
        transition: max-height 0.3s ease, min-height 0.3s ease;
    }

    .header-scrolled .logo img {
        max-height: 50px;
        min-height: 50px;
    }

    /* Nav — center */
    .navmenu {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 clamp(8px, 2vw, 32px);
    }

    .navmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
        flex-wrap: nowrap;
    }

    .navmenu li {
        position: relative;
        padding: 0 clamp(6px, 1vw, 15px);
    }

    .navmenu a,
    .navmenu a:focus {
        font-family: var(--nav-font, "Poppins", sans-serif);
        color: var(--nav-color, #2d2e2e);
        font-size: clamp(12px, 1.1vw, 15px);
        font-weight: 500;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
        transition: color 0.3s;
        position: relative;
        padding: 8px 0;
    }

    /* Underline on hover / active */
    .navmenu > ul > li > a::before {
        content: "";
        position: absolute;
        height: 2px;
        bottom: 0;
        left: 0;
        width: 0;
        background-color: var(--nav-hover-color, #1a3a32);
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .navmenu > ul > li > a:hover::before,
    .navmenu > ul > li > a.active::before {
        visibility: visible;
        width: 100%;
    }

    .navmenu a:hover,
    .navmenu a.active {
        color: var(--nav-hover-color, #1a3a32);
    }

    /* Dropdown panel */
    .navmenu .dropdown ul {
        display: block;
        position: absolute;
        left: 0;
        top: 100%;
        opacity: 0;
        visibility: hidden;
        background: var(--nav-dropdown-background-color, #ffffff);
        border: 1px solid #eeeeee;
        border-radius: 4px;
        padding: 10px 0;
        z-index: 99;
        min-width: 240px;
        box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
        transition: opacity 0.25s, visibility 0.25s, top 0.25s;
        list-style: none;
        margin: 0;
    }

    .navmenu .dropdown:hover > ul {
        opacity: 1;
        visibility: visible;
        top: calc(100% + 2px);
    }

    .navmenu .dropdown ul a {
        padding: 10px 20px;
        font-size: clamp(12px, 1vw, 14px);
        font-weight: 400;
        color: var(--nav-dropdown-color, #2d2e2e);
        white-space: nowrap;
        display: block;
    }

    .navmenu .dropdown ul a:hover {
        color: var(--nav-dropdown-hover-color, #1a3a32);
        background-color: color-mix(in srgb, var(--nav-hover-color, #009961), transparent 95%);
    }

    /* Nested dropdown */
    .navmenu .dropdown .dropdown ul {
        top: 0;
        left: 100%;
    }

    /* CTA — right */
    .header-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    .btn-getstarted {
        padding: clamp(7px, 0.8vw, 11px) clamp(12px, 1.4vw, 24px);
        font-size: clamp(11px, 0.9vw, 14px);
    }

    /* Hamburger hidden on tablet+ */
    .mobile-nav-toggle {
        display: none !important;
    }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
/* Footer Base Styling */
.footer {
    background-color: #ececec; /* Light, broken white as per guideline */
    color: var(--default-color);
    font-size: 0.9rem; /* Slightly smaller than body text (B.5) */
    padding: 40px 0 0 0; /* Added top padding for breathing room */
    border-top: 1px solid #e0e0e0;
}

/* Primary Mandatory Line (B.3) */
.primary-footer-line {
    font-weight: 500;
    color: var(--heading-color);
    line-height: 1.6;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
}

/* Certification Strip (Section C) */
.certification-strip {
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.cert-text {
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Column Headers */
.footer p {
    font-size: 14px !important;
}

.footer h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--heading-color);
}

/* Links (B.5 & Interaction Rules) */
.footer ul {
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer a {
    font-size: 14px;
    color: var(--default-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color); /* Pine Green hover */
    text-decoration: underline;
}

.footer .copyright {
    font-size: 0.8rem;
    color: #999;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background-color: var(--background-color);
    transition: all 0.6s ease-out;
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid var(--accent-color);
    border-top-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: -15px;
    z-index: 99999;
    background-color: var(--accent-color);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 24px;
    color: var(--contrast-color);
    line-height: 0;
}

.scroll-top:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
    color: var(--contrast-color);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
    bottom: 90px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
    color: var(--default-color);
    background-color: var(--background-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 160px 0 80px 0;
    text-align: center;
    position: relative;
}

.page-title:before {
    content: "";
    background-color: color-mix(in srgb, var(--background-color), transparent 50%);
    position: absolute;
    inset: 0;
}

.page-title h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
}

.page-title .breadcrumbs ol li + li {
    padding-left: 10px;
}

.page-title .breadcrumbs ol li + li::before {
    content: "/";
    display: inline-block;
    padding-right: 10px;
    color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
    color: var(--default-color);
    /*background-color: var(--background-color);*/
    padding: 30px clamp(20px, 8vw, 150px);
    scroll-margin-top: 72px;
    overflow: clip;
}

@media (max-width: 1199px) {

    section,
    .section {
        scroll-margin-top: 57px;
    }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
    padding-bottom: 0px;
    position: relative;
}

.section-title h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
}

.section-title h2:after {
    content: "";
    position: absolute;
    display: block;
    width: 150px;
    height: 3px;
    background: var(--accent-color);
    left: 0;
    right: 0;
    bottom: 0;
}

.section-title h3 {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 600;
    color: var(--heading-color);
    font-family: var(--heading-font);
    margin-bottom: 15px;
    padding-bottom: 10px;
    position: relative;
}

.section-title h3:after {
    content: "";
    position: absolute;
    display: block;
    width: 35px;
    height: 2px;
    background: var(--accent-color);
    left: 0;
    bottom: 0
}

#extra_services .section-title h3:after {
    background: none;
}


.section-title p {
    margin-bottom: 0;

    text-align: left;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    width: 100%;
    min-height: 28vh;
    margin-top: 105px;
    position: relative;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hero-background-color);
}

.hero h1 {
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1.2;
    margin: 0;
}

#main-hero-bold-title {
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 800;
}

.hero img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero:before {
    content: "";
    background: color-mix(in srgb, var(--hero-background-color), transparent 30%);
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero h2 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
}

.hero p {
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    font-size: clamp(15px, 1.6vw, 20px);
    line-height: 1.5;
    margin: 10px 0 20px 0;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto; /* let content define height */
        margin-top: 0;
        padding-top: calc(var(--header-height, 76px) + 50px);
        display: flex;
        align-items: center;
    }

    .hero .container {
        gap: 10px; /* controls spacing between text blocks */
    }

    .hero p {
        color: color-mix(in srgb, var(--default-color), transparent 20%);
        font-size: clamp(15px, 1.6vw, 20px);
        line-height: 1.5;
        margin: 10px 20px 10px 20px
    }
}
/*--------------------------------------------------------------
# AboutPage Section
--------------------------------------------------------------*/
.about {
    position: relative;
    background-color: var(--background-color-dark);
    overflow: hidden;
    margin: 0;
}

/* Das Hintergrundbild als subtiles Overlay */
.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-bg-color);
    opacity: 0.09;
    background-attachment: fixed;
    pointer-events: none;
    z-index: 0;
}

.about {
    position: relative;
    z-index: 1;
}


/* Text-Links ohne Animation */
.about .link-text {
    color: var(--default-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.about .link-text:hover {
    color: var(--default-color);
}

/* Typografie 14pt Inter Äquivalent */
.about p,
.about li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--default-color);
    margin-bottom: 25px;
    margin-top: 25px;
}

.about .p-bold {
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;
    line-height: 1.6;
    color: var(--default-color);
    margin-bottom: 15px;
}


.about .list-unstyled {
    margin-bottom: 20px;
}


/*--------------------------------------------------------------
# Details Section (A-3)
--------------------------------------------------------------*/
.details,
.services-section {
    position: relative;
    margin: 0;
    clip-path: inset(0);
    background-color: var(--background-color);
    z-index: 1;

}

/* The Background Image within these sections */
.details img.bg-parallax,
.services-section img.bg-parallax {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.09; /* Subtile transparency */
    z-index: 0; /* Behind content */
    pointer-events: none;
}



/* Der Inhalt muss über dem Pseudoelement liegen */
.details .container,
.services-section .container {
    position: relative;
    z-index: 2;
}

/* H2 mit grünem Unterstrich */
.details h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-top: 40px;
    margin-bottom: 25px;
    display: inline-block;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 8px;
}

/* Text-Links ohne Animation */
.details .link-text {
    color: var(--default-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.details .link-text:hover {
    color: var(--default-color);
}

/* Typografie 14pt Inter Äquivalent */
.details p,
.details li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--default-color);
    margin-bottom: 15px;
}

.details .p-bold {
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;
    line-height: 1.6;
    color: var(--default-color);
    margin-bottom: 15px;
}


.details .list-unstyled {
    padding-left: 20px;
    margin-bottom: 30px;
}

.details a {
    color: var(--accent-color) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.details a:hover {
    color: var(--accent-color-dark) !important;
}

/*--------------------------------------------------------------
# Additional services #Weitere Leistungen
--------------------------------------------------------------*/
.extra_services {
    position: relative;
    clip-path: inset(0); /* Creates the clipping window for the fixed image */
    background-color: var(--background-color);
    z-index: 1;
}

/* The Fixed Background Image */
.extra_services img.bg-parallax {
    position: fixed;
    top: 200px;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.09;
    z-index: 0;
    pointer-events: none;
}

/* Ensure content stays on top */
.extra_services .container {
    position: relative;
    z-index: 2;
}

/* H2 mit grünem Unterstrich */
.extra_services h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-top: 40px;
    margin-bottom: 25px;
    display: inline-block;
    padding-bottom: 8px;
}

/* Text-Links ohne Animation */
.extra_services .link-text {
    color: var(--default-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.extra_services .link-text:hover {
    color: var(--default-color);
}

/* Typografie 14pt Inter Äquivalent */
.extra_services p,
.extra_services li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--default-color);
    margin-top: 25px;
}

.extra_services .p-bold {
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;
    line-height: 1.6;
    color: var(--default-color);
    margin-bottom: 15px;
}


.extra_services .list-unstyled {
    padding-left: 20px;
    margin-bottom: 30px;
}
.extra_services a {
    color: var(--accent-color) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.extra_services a:hover {
    color: var(--accent-color-dark) !important;
}

/*--------------------------------------------------------------
# Additional services #Weitere Leistungen
--------------------------------------------------------------*/
/* Grouping the main containers */
.realestate_evaluation,
.brief_review,
.typical_assessment_cases {
    position: relative;
    clip-path: inset(0);
    background-color: var(--background-color);
    z-index: 1;
}


.realestate_evaluation img.bg-parallax,
.brief_review img.bg-parallax,
.typical_assessment_cases img.bg-parallax {
    position: fixed;
    top: 200px;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.09;
    z-index: 0;
    pointer-events: none;
}

/* Inner elements */
.realestate_evaluation .container,
.brief_review .container,
.typical_assessment_cases .container {
    position: relative;
    z-index: 2;
}

.realestate_evaluation h2,
.brief_review h2,
.typical_assessment_cases h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-top: 40px;
    margin-bottom: 25px;
    display: inline-block;
    padding-bottom: 8px;
}


.realestate_evaluation .link-text,
.brief_review .link-text {
    color: var(--default-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.typical_assessment_cases .link-text {
    color: var(--default-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-left: 3rem;
}

.typical_assessment_cases .link-text:hover {
    color: var(--accent-color);
}

.typical_assessment_cases h3:after {
    background: none;
}

.realestate_evaluation .link-text:hover,
.brief_review .link-text:hover,
.typical_assessment_cases .link-text:hover {
    color: var(--default-color);
}

.realestate_evaluation p,
.realestate_evaluation li,
.brief_review p,
.brief_review li,
.typical_assessment_cases p,
.typical_assessment_cases li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--default-color);
    margin-bottom: 15px;
    margin-top: 15px;
}

.realestate_evaluation .p-bold,
.brief_review .p-bold,
.typical_assessment_cases .p-bold {
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;
    line-height: 1.6;
    color: var(--default-color);
    margin-bottom: 15px;
}

.realestate_evaluation .list-unstyled,
.brief_review .list-unstyled,
.typical_assessment_cases .list-unstyled {
    padding-left: 20px;
    margin-bottom: 30px;
    list-style: none;
}

.realestate_evaluation .list-unstyled li,
.brief_review .list-unstyled li,
.typical_assessment_cases .list-unstyled li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.realestate_evaluation .step-title,
.brief_review .step-title,
.typical_assessment_cases .step-title {
    display: block;
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.realestate_evaluation .step-desc,
.brief_review .step-desc,
.typical_assessment_cases .step-desc {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.realestate_evaluation .p-smaller,
.brief_review .p-smaller,
.typical_assessment_cases .p-smaller {
    font-size: 14px;
    line-height: 1.6;
    color: var(--default-color);
    margin-bottom: 15px;
}

.brief_review a, .realestate_evaluation a {
    color: var(--accent-color) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.brief_review a:hover, .realestate_evaluation a:hover {
    color: var(--accent-color-dark) !important;
}


/*--------------------------------------------------------------
# Leistungsarten - 2 Spalten Layout
--------------------------------------------------------------*/

.service-item-soft-left {
    padding: 5px 60px 5px 5px;
    height: 100%;
}

.service-item-soft-right {
    padding: 5px 5px 5px 5px;
    height: 100%;
}

.service-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .service-item-soft-right {
        padding: 0px;
    }

    .service-item-soft-left {
        padding: 0px;
    }

}


/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
    background-color: var(--surface-color);
    box-shadow: 0px 5px 90px 0px rgba(0, 0, 0, 0.1);
    padding: 60px 30px;
    transition: all ease-in-out 0.3s;
    border-radius: 18px;
    border-bottom: 5px solid var(--surface-color);
    height: 100%;
}

.services .service-item .icon {
    color: var(--contrast-color);
    background: var(--accent-color);
    margin: 0;
    width: 64px;
    height: 64px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    transition: ease-in-out 0.3s;
}

.services .service-item h3 {
    font-weight: 700;
    margin: 10px 0 15px 0;
    font-size: 22px;
    transition: ease-in-out 0.3s;
}

.services .service-item p {
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
}

@media (min-width: 1365px) {
    .services .service-item:hover {
        transform: translateY(-10px);
        border-color: var(--accent-color);
    }

    .services .service-item:hover h3 {
        color: var(--accent-color);
    }
}

/*--------------------------------------------------------------
# Certification Stripe - Exakte Schriftgrößen (Word-Vorlage)
--------------------------------------------------------------*/
.certification-stripe {
    background: var(--background-color-dark);
    color: var(--contrast-color);
    font-family: var(--heading-font);
}

/* Hauptname */
.cert-header h4 {
    font-size: 1.25rem; /* Etwas größer als der Rest zur Abhebung */
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--heading-color);
}

/* Bereich 12pt (entspricht ca. 1rem / 16px) */
.cert-header p,
.cert-header .subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--default-color);
}

.cert-header {
    margin-bottom: 15px;
}

.p-sub-title {
    font-size: 14px !important;
}

/* Bereich 10pt (entspricht ca. 0.8rem / 13px) */
.cert-text-left {
    flex: 1;
    padding-left: 20px;
    font-size: clamp(0.75rem, 1.3vw, 0.85rem);
    line-height: 1.5;
    color: var(--default-color);
}

.cert-text-left strong {
    font-weight: 600;
}

/* Bild-Ausrichtung */
.cert-body-grid {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(15px, 4vw, 40px);
    margin-top: 10px;
}

.cert-image-right {
    flex: 0 0 clamp(110px, 15vw, 160px);
}

.cert-image-right img {
    height: 250px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

/* Responsive Anpassung */
@media (max-width: 768px) {

    .cert-body-grid {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 10px;
    }

    .cert-text-left {
        padding-left: 0;
        text-align: left;
        width: 100%;
    }

    .cert-image-right {
        order: -1;
    }
}

/*--------------------------------------------------------------
# Final Contact Note (Schlichter Text-Aufruf)
--------------------------------------------------------------*/
.contact-note-section {
    background-color: var(--background-color);
    text-align: center;
}

.contact-note-content {
    text-align: left;
}

.contact-note-text {
    /* Entspricht 12pt Inter */
    font-size: 1rem;
    line-height: 1.6;
    color: var(--default-color);
    margin: 0;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

#form-success-text {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 1rem;
    margin-top: 20px;

}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
    padding: 30px 0;
    position: relative;
    clip-path: inset(0);
    background-color: var(--hero-background-color);
}

.call-to-action img {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.call-to-action:before {
    content: "";
    background: color-mix(in srgb, var(--background-color), transparent 50%);
    position: absolute;
    inset: 0;
    z-index: 2;
}

.call-to-action .container {
    position: relative;
    z-index: 3;
}

.call-to-action h3 {
    color: var(--default-color);
    font-size: 28px;
    font-weight: 700;
}

.call-to-action p {
    color: var(--default-color);
}


.call-to-action .cta-link {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.3px;

    background: none;
    color: var(--accent-color);
    text-decoration: none;
    padding: 20px 40px;
    margin: 10px;
}

.call-to-action .cta-link:hover {
    color: color-mix(in srgb, var(--accent-color) 80%, black 20%);
}

@media (max-width: 768px) {
    .call-to-action .cta-link {
        padding: 0;
    }
}
/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item + .info-item {
    margin-top: 40px;
}

.contact .info-item i {
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 92%);
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    margin-right: 15px;
}

.contact .info-item h3 {
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact .info-item p {
    padding: 0;
    margin-bottom: 0;
    font-size: 14px;
}


.contact li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--default-color);
    margin-top: 12px;
}

.contact .info-item:hover i {
    background: var(--accent-color);
    color: var(--contrast-color);
}

.contact .php-email-form {
    height: 100%;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
    font-size: 14px;
    padding: 10px 15px;
    box-shadow: none;
    border-radius: 0;
    color: var(--default-color);
    background-color: var(--surface-color);
    border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
    border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
    color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
    color: var(--contrast-color);
    background: var(--accent-color);
    border: 0;
    padding: 10px 30px;
    transition: 0.4s;
    border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 25%);
}


.profile-art-container {
    position: relative;
    border: 8px solid #f5f5f5;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    overflow: hidden;
    padding: 0;
    display: block;
    max-width: 300px;
    width: 100%;

    /* Forces the browser to treat the container as a static layer */
    -webkit-mask-image: -webkit-radial-gradient(white, black);

    /* Smooth lift for the whole container */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

#about-me-portrait {
    position: relative;
    border: 8px solid #f5f5f5;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
    display: block;
    max-width: 300px;
    width: 100%;

    /* Forces the browser to treat the container as a static layer */
    -webkit-mask-image: -webkit-radial-gradient(white, black);

    /* Smooth lift for the whole container */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}


/* Stil für Zertifikate und Siegel (z.B. DEKRA) */
.certificate-art {
    /* Professioneller weißer Rahmen (wie ein Passepartout) */
    border: 6px solid #ffffff;
    border-radius: 4px; /* Präzise, nicht zu rund */

    /* Hochwertiger, weicher Schatten für Tiefe */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);

    /* Subtiler Interaktionseffekt beim Drüberfahren */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff; /* Hintergrund für transparente Siegel */

    /* Optimierung für die Darstellung */
    display: inline-block;
    object-fit: contain; /* Siegel wird nicht verzerrt */
}

/* Interaktionseffekt */
.certificate-art:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

/* Optional: Container für besseres Spacing, falls nötig */
.certificate-container {
    padding: 10px;
    display: inline-block;
}