/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5c7b9a;
    --text-color: #333;
    --bg-light: #ffffff;
    --bg-dark: #f4f4f4;
    --max-width: 1280px;
}

html {
    background-color: #e0e0e0; /* Background outside the 1280px box */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    max-width: var(--max-width);
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header and Navigation */
#main-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    width: 100%;
    max-width: var(--max-width);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo img {
    height: 60px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Page Content */
main {
    flex: 1;
}

.page-hero {
    height: 450px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
     background-image:url('../assets/img/home_bg.jpg');
     background-repeat: no-repeat;
     background-position:right;
     background-size:cover;
     margin-bottom:50px;
}

.page-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   /* 
    background: rgba(0, 0, 0, 0.3); */
}

h1 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-hero h1 {
    color: #fff;
    font-size: 3rem;
}

.text-block h1 {
    color: var(--text-color);
    margin-bottom: 30px;
}

.text-block h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.text-block h3 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.text-block a {
    color: var(--primary-color);
    text-decoration: none;
}

.text-block a:hover {
    text-decoration: underline;
}

.section-content {
    padding: 80px 0;
}

.text-block {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
}

.text-block p {
    margin-bottom: 25px;
}

/* Headline Bar */
.headline-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom:20px;
}

.headline-bar h2 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Content Sections with Background Images */
.content-section {
    padding: 100px 0;
   position: relative;
    background-size: cover;
    background-position: center;
    background-repeat:no-repeat;
    /* background-attachment: fixed; /* Parallax-Effekt */ */
    min-height: 400px;
    display: flex;
    align-items: center;
}



.content-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    b/* ackground: rgba(255, 255, 255, 0.7); */ /* Heller Overlay für bessere Lesbarkeit */
    z-index: 1;
}

.content-section .container {
    position: relative;
    z-index: 2;
}

.content-box {
    max-width: 600px;
    padding: 30px;
    /* background: rgba(255, 255, 255, 0.8); */
    border-left: 5px solid var(--primary-color);
}

.content-box.right-align {
    margin-left: auto;
}

.content-box p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: white;
    line-height: 1.7;
}

/* Specific Backgrounds for Index Sections */
.section-profil { background-image: url('../assets/img/profil_bg.jpg');background-repeat: no-repeat; }
.section-angebot { background-image: url('../assets/img/angebot_bg.jpg');background-repeat: no-repeat; }
.section-referenzen { background-image: url('../assets/img/referenzen_bg.jpg'); min-height:550px;background-repeat: no-repeat;}
.section-background { background-image: url('../assets/img/background_bg.jpg'); background-repeat: no-repeat;}
.section-fakten { background-image: url('../assets/img/fakten_bg.jpg'); min-height:550px;background-repeat: no-repeat;}


.hero-angebot {background-image: url('../assets/img/angebot_bg.jpg');background-repeat: no-repeat;}

.btn-more {
    display: inline-block;
    padding: 10px 30px;
   
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-top: 10px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.btn-more:hover {
    border: 1px solid var(--primary-color);
    background-color:white;
    color: var(--primary-color);
}

/* Offer Grid Layout */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.offer-tile {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.offer-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.offer-tile h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}

.offer-tile .separator {
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
}

.offer-tile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-tile ul li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
    line-height: 1.5;
}

.offer-tile ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    display: none; /* Hidden by default, shown via JS */
}

#cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.btn-accept {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-accept:hover {
    background-color: #4a6681;
}

.btn-decline {
    background-color: #555;
    color: #fff;
}

.btn-decline:hover {
    background-color: #666;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    #cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
footer {
    padding: 40px 0;
    background-color: #333;
    color: #fff;
    text-align: center;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.85rem;
}

.footer-nav a:hover {
    color: #fff;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    #main-header .container {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links li {
        margin: 5px 10px;
    }
    .page-hero {
        
        height: 500px;
    }
    .page-hero h1 {
        font-size: 2rem;
    }
    .content-row, .content-row.reverse {
        flex-direction: column;
        gap: 20px;
    }
    .content-section {
        padding: 40px 0;
    }
}



.leftimage {
    background-position: left!important;
        margin-bottom:50px;
}

.rightimage {
    background-position: right!important;
            margin-bottom:50px;
}

.topleft {
    background-position: top left!important;
        margin-bottom:50px;
}

.topright {
    background-position: top right!important;
    margin-bottom:50px;
}   