/* ===============================
   Basis & Fonts nur für Privatkunden-Unterseite
================================ */
* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: "Lora", serif;
    font-size: 18px;
    color: #3A3A3A;
    background: linear-gradient(-45deg, #f4f7fb, #eef2f7, #dbe4ed, #f4f7fb);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}

@keyframes gradientBG {
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}

h1,h2,h3 { font-family:"Playfair Display", serif; color:#3A6EA5; margin-bottom:15px; }
h2 { font-size:26px; }
p { font-family:"Open Sans", sans-serif; line-height:1.8; color:#3A3A3A; margin-bottom:20px; font-size:18px; }
a { text-decoration:none; transition: color 0.3s; }
a:hover { color:#3A6EA5; }

/* ===============================
   Header Unterseite
================================ */
header {
    background-color: rgba(244,247,251,0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header-container { display:flex; justify-content:space-between; align-items:center; width:100%; padding:0 20px; }

.header-logo img { height:auto; max-height:110px; }

@media(max-width:768px){
    .header-logo img{ max-height:65px; }
    .burger-menu {
        display:block;
        font-size:30px;
        position: relative;
        z-index:1500;
        padding:10px;
        cursor:pointer;
        color:#3A6EA5;
    }
    .header-nav { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        right: 0; 
        background: #EEF2F7; 
        width: 100%; 
        text-align: center; 
        padding: 20px 0; 
    }
    .header-nav.active { display:flex; }
    .nav-links { flex-direction: column; gap:15px; }
    .nav-links a { color:#3A3A3A; font-size:20px; }
}

.nav-links { display:flex; list-style:none; gap:25px; }
.nav-links a { color:#3A6EA5; font-size:18px; }

/* ===============================
   Hero-Sektion Privatkunden
================================ */
#privatkunden-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;               /* volle Bildschirmhöhe */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#privatkunden-hero .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;               /* Bild füllt Bereich */
    z-index: 0;
}

/* Overlay für Lesbarkeit */
#privatkunden-hero::before {
    content:"";
    position:absolute;
    inset:0;
    background: rgba(0,0,0,0.35);
    z-index:1;
}

/* Text zentriert im Bild */
#privatkunden-hero .intro-text {
    position: relative;
    z-index: 2;
    max-width: 80%;
    width: 100%;
    padding: 20px;
    color: white;
}

/* Textfarben & Gradient */
#privatkunden-hero .intro-text h1,
#privatkunden-hero .intro-text h2 {
    color:#e0e0e0;
    background: linear-gradient(90deg,#fff,#d0d0d0,#f5f5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Responsive Schriftgrößen */
#privatkunden-hero .intro-text h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height:1.2;
}
#privatkunden-hero .intro-text h2 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-top: 15px;
}

/* Button responsive */
#privatkunden-hero .btn {
    font-size: clamp(14px, 2vw, 18px);
    padding: clamp(8px, 1vw, 12px) clamp(20px, 3vw, 30px);
    border-radius: 30px;
    background:#3A6EA5;
    color:white;
    border:none;
    cursor:pointer;
    transition: 0.2s;
}
#privatkunden-hero .btn:hover {
    background:#2F5D8A;
    transform: scale(1.05);
}

/* Mobile Anpassungen */
@media (max-width:768px) {
    #privatkunden-hero {
        min-height: 85vh;
        padding: 0 20px;
    }
}

/* Kleine Displays wie Galaxy S20 */
@media (max-width: 480px) {
    #privatkunden-hero .hero-image {
        object-fit: contain;
        height: auto;
        max-height: 100vh;
    }

    #privatkunden-hero {
        min-height: auto;
    }

    #privatkunden-hero .intro-text {
        max-width: 90%;
        padding: 15px;
    }
}

/* ===============================
   Grid Leistungen Privatkunden
================================ */
#privatkunden-leistungen {
    position:relative;
    padding:100px 20px;
}

#privatkunden-leistungen .grid {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:40px;
    max-width:1200px;
    margin:0 auto;
}

#privatkunden-leistungen .grid-item {
    flex:1 1 300px;
    max-width:350px;
    background: rgba(255,255,255,0.9);
    border-radius:20px;
    overflow:hidden;
    text-align:center;
    padding:40px 20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition: transform 1.2s cubic-bezier(0.4,0,0.2,1), opacity 1.2s ease-out, box-shadow 0.3s ease;
    cursor:pointer;
    opacity:0;
    transform:translateY(25px);
}

#privatkunden-leistungen .grid-item.visible { opacity:1; transform:translateY(0); }

#privatkunden-leistungen .grid-item:hover {
    transform:translateY(-8px);
    box-shadow:0 15px 30px rgba(0,0,0,0.15);
}

#privatkunden-leistungen .grid-item h2,
#privatkunden-leistungen .grid-item p { font-family:"Open Sans", sans-serif; color:#3A3A3A; }

@media(max-width:768px){
    #privatkunden-leistungen .grid { gap:25px; }
    #privatkunden-leistungen .grid-item { flex:1 1 100%; padding:30px 15px; }
}

/* ===============================
   Kontakt-Sektion Privatkunden
================================ */
.contact-info {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:15px;
    text-align:center;
}

.contact-info img { width:320px; height:auto; margin-bottom:15px; }
.contact-info h2 { font-size:2.5rem; color:#3A6EA5; }
.contact-info p { font-size:18px; color:#3A3A3A; }
.contact-info a { color:#3A6EA5; text-decoration:none; }
.contact-info a:hover { color:#2F5D8A; }

@media(max-width:768px){
    .contact-info img { width:200px; margin-bottom:10px; }
    .contact-info h2 { font-size:2rem; }
    .contact-info p { font-size:16px; }
}

/* ===============================
   Waves
================================ */
.wave svg { width:100%; height:150px; display:block; }

/* ===============================
   Footer
================================ */
footer{
    background:#3A6EA5;
    padding:20px;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    color:white;
}

footer a{ color:white; margin-left:15px; }
footer p{ color:white; }

/* ===============================
   Cookie-Banner
================================ */
#cookieBanner {
    position: fixed;
    top: calc(100px + 10px);
    left: 10px;
    right: 10px;
    background: rgba(58,110,165,0.95);
    color: #ffffff;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    z-index: 2000;
    font-size: 16px;
    border-radius: 8px;
    flex-wrap: wrap;
    display: none;
}
#cookieBanner button { background:#2F5D8A; color:white; border:none; padding:6px 16px; border-radius:20px; cursor:pointer; }
#cookieBanner button:hover { background:#1F466A; }

/* ===============================
   Fade-In Animation
================================ */
#privatkunden-hero .fade-section,
#privatkunden-leistungen .grid-item {
    opacity:0;
    transform:translateY(25px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.4,0,0.2,1);
}

#privatkunden-hero .fade-section.visible,
#privatkunden-leistungen .grid-item.visible {
    opacity:1;
    transform:translateY(0);
}

/* ===============================
   Buttons
================================ */
.btn {
    background: #3A6EA5;
    color:white;
    border:none;
    padding:12px 30px;
    border-radius:30px;
    cursor:pointer;
    transition: background 0.3s, transform 0.2s;
    font-size:18px;
    display:inline-block;
    margin-top:10px;
}
.btn:hover { background:#2F5D8A; transform: scale(1.05); }