/* Basic Reset & Modern Base Styles */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* For smooth scrolling on anchor links */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4; /* Light background for the page */
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 0.75em;
    color: #242c2c; /* Darker headline color */
}

h2 {
    font-size: 1.8em; /* Default/Mobile font size */
    border-bottom: 2px solid #2C7CC4; /* Accent color border */
    padding-bottom: 0.3em;
    display: inline-block;
}

h3 {
    font-size: 1.3em; /* Default/Mobile font size */
    color: #2C7CC4; /* Accent color for sub-headlines */
}

p {
    margin-bottom: 1em;
}

a {
    color: #2C7CC4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Accent Color Class */
.accent-color {
    color: #2C7CC4; /* Logo Blue */
    font-weight: 600;
}


/* Main Grid Layout (Mobile-First) */
main {
    display: grid;
    grid-template-areas:
        'header'
        'mobile-slogans'
        'content'
        'footer';
    grid-template-rows: auto auto 1fr auto; /* Header, Slogans, content flexible, footer */
    min-height: 100vh;
}

#header {
    grid-area: header;
    position: sticky;
    top: 0;
    background-color: #FFF;
    border-bottom: 2px solid #242c2c;
    padding: 0;
    z-index: 1000;
}

/* New header content wrapper */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 5%; /* Mobile padding */
}
.header-left {
    display: flex;
    align-items: center;
}

#header img {
    height: 50px; /* Mobile logo height */
}

/* Mobile Slogans Bar */
#header-slogans-mobile {
    grid-area: mobile-slogans;
    background-color: #242c2c; /* Logo Dark Gray */
    color: #f4f4f4;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

#header-slogans-mobile p {
    margin: 0;
    font-size: 1.1em;
}

/* Desktop Slogans (hidden on mobile) */
#header-slogans-desktop {
    display: none;
}

/* Navigation Menu (Mobile-First: Hidden, controlled by JS) */
#nav-menu {
    display: none; /* Hidden by default on mobile, shown via JS '.active' class */
    position: absolute;
    top: 100%; /* Position below header after JS makes it display:block */
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#nav-menu.active { /* This class is toggled by JavaScript */
    display: block;
}

#nav-menu ul {
    list-style-type: none;
}

#nav-menu ul li {
    text-align: center;
    border-bottom: 1px solid #eee;
}
#nav-menu ul li:last-child {
    border-bottom: none;
}

#nav-menu ul li a:link,
#nav-menu ul li a:visited {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 0.8rem 1rem; /* Adjusted padding for touch targets */
    display: block;
    transition: color 0.3s ease;
}

#nav-menu ul li a:hover,
#nav-menu ul li a:active {
    color: #2979C1ff;
}

/* Hamburger Menu Button (Mobile-First: Visible) */
#hamburger-menu {
    display: block; /* Visible on mobile */
    background: none;
    border: none;
    font-size: 2rem;
    color: #242c2c;
    cursor: pointer;
}

/* Sidebars (Mobile-First: Hidden) */
.sidebar {
    display: none;
}

/* Content Area (Mobile-First) */
#content-area {
    grid-area: content; /* Matches mobile grid-template-areas */
    padding: 1.5rem 5%; /* Mobile padding */
    background-color: #fff;
}

section {
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee; /* Separator for sections */
}
section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

/* Specific Section Styling */
#leistungen .service-container {
    display: flex;
    gap: 2rem;
}

#leistungen .service-text ul {
    list-style-position: inside;
    padding-left: 0;
}
#leistungen .service-text ul li {
    margin-bottom: 0.5em;
}

#leistungen .service-image img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#ausfuehrung .process-step {
    background-color: #f9f9f9;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid #2C7CC4;
    border-radius: 0 5px 5px 0;
}

#kontakt address {
    font-style: normal;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-left: 5px solid #2C7CC4;
    border-radius: 0 5px 5px 0;
}

/* Footer */
#footer {
    grid-area: footer;
    background-color: #242c2c;
    color: #fff;
    text-align: center;
    padding: 1.5rem 2%;
    font-size: 0.9em;
}

#footer p {
    margin-bottom: 0.5em;
}

#footer a {
    color: #2C7CC4;
}
#footer a:hover {
    color: #fff;
}


#slideshow-image {
    width: 100%;
    height: auto; /* Behält das Seitenverhältnis des Bildes bei */
    max-height: 400px; /* Beispiel: Eine maximale Höhe, um sehr hohe Bilder zu begrenzen */
    object-fit: cover; /* Stellt sicher, dass das Bild den Container füllt, ohne das Seitenverhältnis zu verzerren (kann Teile abschneiden) */
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Styling for slideshow arrows */
#slideshow-container {
    position: relative; /* Necessary for positioning the arrows */
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(36, 44, 44, 0.6); /* Semi-transparent dark gray */
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 16px;
    font-size: 20px;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slide-arrow:hover {
    background-color: #2C7CC4; /* Logo Blue on hover */
}

#prev-slide {
    left: 0;
    border-radius: 0 3px 3px 0;
}

#next-slide {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.legal-content {
    padding: 20px;
}

.legal-content h1 {
    margin-bottom: 20px;
}

.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.5em; /* Etwas kleiner als Haupt-H2 */
}

.legal-content h3 {
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 1.2em; /* Etwas kleiner als Haupt-H3 */
}

.legal-content p, .legal-content ul {
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 20px;
}
/* --- Responsive Design: Desktop Styles --- */
@media (min-width: 940px) {
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    main {
        grid-template-areas:
            'header header header'
            'left-sidebar content-area right-sidebar'
            'footer footer footer';
        grid-template-columns: 1fr 60% 1fr; /* Adjust sidebar width vs content */
        grid-template-rows: auto 1fr auto; /* Reset rows for desktop */
    }

    /* Center header content on desktop */
    .header-content {
        width: 60%;
        min-width: 940px;
        margin: 0 auto; /* Center the container */
        padding: 1rem 0; /* Vertical padding, no horizontal needed due to centering */
    }
    .header-left {
        gap: 1.5rem; /* Space between logo and slogans */
    }
    #header img {
        height: 60px; /* Desktop logo height */
    }
    
    /* Hide mobile slogans on desktop */
    #header-slogans-mobile {
        display: none;
    }

    /* Show and style desktop slogans */
    #header-slogans-desktop {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        color: #242c2c; /* Logo Dark Gray */
    }

    #header-slogans-desktop span {
        font-weight: 700;
        font-family: 'Roboto', sans-serif;
        line-height: 1.4;
        font-size: 1.1em;
    }

    #header-slogans-desktop span:last-child {
        color: #2C7CC4; /* Logo Blue */
    }


    /* Desktop Navigation */
    #nav-menu {
        display: flex !important;
        position: static;
        width: auto;
        background-color: transparent;
        border-top: none;
        box-shadow: none;
    }

    #nav-menu ul {
        display: flex;
        flex-direction: row;
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    #nav-menu ul li {
        padding: 0 1rem;
        margin: 0;
        border-bottom: none;
        border-right: 1px solid #ccc;
    }

    #nav-menu ul li:last-child {
        border-right: none;
    }

    #nav-menu ul li a:link,
    #nav-menu ul li a:visited {
        padding: 0.5em 0;
    }

    #hamburger-menu {
        display: none; /* Hide hamburger on desktop */
    }

    /* Show and style sidebars for desktop */
    .sidebar {
        display: block;
        background-color: #2C7CC420; /* Subtle blue tint for sidebars */
    }
    #left-sidebar { grid-area: left-sidebar; }
    #right-sidebar { grid-area: right-sidebar; }

    #content-area {
        grid-area: content-area; /* Assign to correct desktop grid area */
        padding: 2rem; /* Desktop padding */
    }
    
    /* Adjust specific sections for desktop if needed */
    #leistungen .service-container {
        flex-direction: row; /* Side-by-side on desktop */
    }
    #leistungen .service-text {
        flex: 2; /* Text takes more space */
    }
    #leistungen .service-image {
        flex: 1; /* Image takes less space */
        display: flex;
        align-items: center; /* Vertically center image if container is taller */
        min-height: 250px;
    }
   
}
@media (max-width: 1910px) {
    #leistungen .service-container {
        flex-direction: column;
    }
}
