/* --- Variablen & Reset --- */
:root {
    --sidebar-width: 270px;
    
    /* Farben */
    --color-primary: #0056b3;   /* Dunkles Sanitär-Blau */
    --color-primary-light: #007bff;
    --color-cyan: #00a8cc;      /* Wasser-Cyan Akzent */
    --color-bg: #f8f9fa;        /* Helles Grauweiß */
    --color-sidebar: #0a192f;   /* Sehr dunkles Blau/Schwarz */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    
    /* Fonts */
    --font-heading: 'Barlow', sans-serif; /* Technisch */
    --font-body: 'Roboto', sans-serif;    /* Lesbar */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 300;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Layout --- */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-sidebar);
    color: var(--color-white);
    position: fixed;
    height: 100vh;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    border-right: 4px solid var(--color-cyan);
}

.brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.drop-icon { font-size: 1.5rem; margin-left: 5px; }

.nav-menu li { margin-bottom: 10px; }
.nav-menu a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #b0bec5;
    display: block;
    padding: 12px 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--color-cyan);
    padding-left: 20px;
    border-left: 4px solid var(--color-cyan);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.9rem;
    color: #90a4ae;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.phone-link { display: block; margin-top: 5px; color: var(--color-white); font-weight: 700; }
.emergency-badge { margin-top: 10px; background: #d32f2f; color: white; padding: 5px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; letter-spacing: 1px; }

/* --- Main Content --- */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
}

/* --- Hero & Header --- */
.hero-header, .page-header {
    height: 65vh;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 5px solid var(--color-primary);
}
.page-header.compact { height: 40vh; }

.overlay {
    background: linear-gradient(to right, rgba(0, 40, 80, 0.9), rgba(0, 40, 80, 0.4));
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    color: #fff;
}

.hero-text { max-width: 700px; border-left: 5px solid var(--color-cyan); padding-left: 30px; }

.hero-header h1, .page-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #e0f7fa;
}

/* --- Content Container --- */
.content-container {
    max-width: 1100px; 
    margin: 0 auto;
    padding: 80px 50px;
    width: 100%;
}

/* --- Typography & Sections --- */
.text-section { margin-bottom: 60px; }
h2 { 
    font-family: var(--font-heading); 
    font-size: 2.2rem; 
    margin-bottom: 25px; 
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-cyan);
    display: inline-block;
    padding-bottom: 5px;
}
h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 15px; color: var(--color-primary); margin-top: 15px; }
p { margin-bottom: 20px; text-align: justify; font-size: 1.05rem; color: var(--color-text); }

.bg-water {
    background-color: #e0f7fa;
    padding: 50px;
    border-radius: 8px;
    border: 1px solid #b2ebf2;
}

/* --- Grid & Cards --- */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.grid-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    border-bottom: 4px solid var(--color-primary);
    transition: transform 0.3s;
    text-align: center;
}
.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.15);
    border-bottom-color: var(--color-cyan);
}

.icon-circle { 
    width: 70px; height: 70px; 
    background: #e3f2fd; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--color-primary);
}

/* Split Layout */
.split-layout {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
}
.split-layout img { width: 45%; border-radius: 4px; border: 4px solid #e3f2fd; }
.split-layout .split-content { width: 55%; }

/* --- Forms --- */
.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.contact-info { background: var(--color-primary); color: #fff; padding: 30px; border-radius: 4px; }
.contact-info h3 { color: var(--color-cyan); border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
.contact-info p { color: #e3f2fd; }
.contact-info strong { color: #fff; }

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--color-primary); font-size: 0.9rem; }
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
}
input:focus, textarea:focus { border-color: var(--color-cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.2); }

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.btn-blue { background-color: var(--color-primary); color: #fff; }
.btn-blue:hover { background-color: var(--color-cyan); }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.full-width { width: 100%; }

/* --- Testimonials --- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--color-cyan);
}
blockquote { font-style: italic; color: #555; margin-bottom: 20px; }
cite { font-weight: 700; font-size: 0.9rem; display: block; color: var(--color-primary); font-family: var(--font-heading); }

/* --- Footer --- */
.page-footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #cfd8dc;
    color: #78909c;
    font-size: 0.85rem;
    margin-top: auto;
    background: #eceff1;
}

/* --- Mobile Menu Button --- */
.menu-toggle { display: none; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        transition: transform 0.3s ease;
        padding-top: 80px;
    }
    .sidebar.active { transform: translateX(0); }
    
    .main-content { margin-left: 0; width: 100%; }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: var(--color-primary);
        border: 1px solid var(--color-cyan);
        width: 45px;
        height: 45px;
        border-radius: 4px;
        cursor: pointer;
    }
    .bar {
        display: block;
        width: 25px;
        height: 2px;
        background: #fff;
    }

    .hero-header h1 { font-size: 2.5rem; }
    .overlay { padding: 0 30px; }
    .content-container { padding: 40px 20px; }
    .split-layout, .contact-layout { flex-direction: column; display: flex; }
    .split-layout img, .split-layout .split-content { width: 100%; }
    .split-layout img { margin-bottom: 20px; }
    .contact-info { margin-bottom: 30px; }
}