/* ===============================
   Basis & Fonts
================================ */
* { margin:0; padding:0; box-sizing:border-box; }

html, body {
    margin:0;
    padding:0;
    overflow-x:hidden;
}

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;
    margin-bottom:20px;
}

a{
    text-decoration:none;
    transition:color .3s;
}

a:hover{ color:#3A6EA5; }

.page-wrapper{
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

/* ===============================
   Header
================================ */

header{
    background-color:rgba(244,247,251,.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; /* Desktop */
}

/* Mobile Logo kleiner */
@media (max-width:768px){
    .header-logo img{
        max-height:65px;
    }
}

/* Burger */

.burger-menu{ display:none; }

@media(max-width:768px){

    .burger-menu{
        display:block;
        font-size:30px;
        color:#3A6EA5;
        padding:10px;
        cursor:pointer;
    }

    .header-nav{
        display:none;
        flex-direction:column;
        position:absolute;
        top:100%;
        right:0;
        width:100%;
        background:#EEF2F7;
        text-align:center;
        padding:20px 0;
    }

    .header-nav.active{ display:flex; }

    .nav-links{
        flex-direction:column;
        gap:15px;
    }

}

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

.nav-links a{
    color:#3A6EA5;
    font-size:18px;
}

/* ===============================
   Main
================================ */

main.content{
    flex:1;
    width:100%;
    margin-top:160px;
}

section{
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    scroll-margin-top:160px;
}

section > div,
section > .grid{
    max-width:1200px;
    width:100%;
}

/* ===============================
   HERO
================================ */

#home{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    min-height:100vh;
}

/* Bild */

.hero-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

/* Overlay */

#home::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
    z-index:1;
}

/* Text */

.intro-text{
    position:relative;
    z-index:2;
    max-width:800px;
    padding:20px;
}

.intro-text h1,
.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,.5);
}

.intro-text h1{
    font-size:3rem;
    line-height:1.2;
}

.intro-text h2{
    font-size:1.5rem;
    margin-top:15px;
}

/* Mobile */

@media(max-width:768px){

    #home{
        min-height:85vh;
        padding:40px 20px;
    }

    .intro-text h1{
        font-size:2rem;
    }

    .intro-text h2{
        font-size:1.1rem;
    }

}

/* ===============================
   Buttons
================================ */

.btn{
    background:#3A6EA5;
    color:white;
    border:none;
    padding:12px 30px;
    border-radius:30px;
    font-size:18px;
    margin-top:10px;
    display:inline-block;
    transition:.3s;
}

.btn:hover{
    background:#2F5D8A;
    transform:scale(1.05);
}

/* ===============================
   Leistungen
================================ */

#leistungen{
    position:relative;
    padding:140px 0;
}

.leistungen-bg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.services-grid{
    position:relative;
    z-index:1;
    display:flex;
    gap:30px;
    flex-wrap:wrap;
    justify-content:center;
}

/* Cards */

.service-card{
    flex:1 1 300px;
    max-width:350px;
    background:rgba(255,255,255,.9);
    border-radius:20px;
    padding:40px 20px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:.3s;
}

.service-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 30px rgba(0,0,0,0.15);
}

/* ===============================
   Über mich
================================ */

#ueber-mich{
    position:relative;
    padding:100px 20px;
    background:#f4f7fb;
}

#ueber-mich::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(244,247,251,.7);
}

.ueber-mich-bg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.ueber-mich-container{
    position:relative;
    z-index:1;
    display:flex;
    gap:40px;
    flex-wrap:wrap;
}

.ueber-mich-text{
    flex:1;
}

/* ===============================
   Kontakt
================================ */

#kontakt{
    position:relative;
    padding:140px 20px;
    text-align:center;
}

.kontakt-bg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.kontakt-container{
    position:relative;
    z-index:1;
}

.kontakt-content img{
    width:320px;
    margin-bottom:15px;
}

.kontakt-content h2{
    font-size:2.5rem;
}

@media(max-width:768px){

    .kontakt-content img{
        width:200px;
    }

    .kontakt-content h2{
        font-size:2rem;
    }

}

/* ===============================
   Footer
================================ */

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

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

/* ===============================
   Cookie-Banner
================================ */
#cookieBanner {
    position: fixed;
    top: 100px; /* Abstand vom oberen Bildschirmrand */
    left: 10px;
    right: 10px;
    background: rgba(58,110,165,0.95);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    z-index: 2000;
    font-size: 16px;
    border-radius: 8px;
    flex-wrap: wrap;
}

#cookieBanner button {
    background:#2F5D8A;
    color:white;
    border:none;
    padding:6px 16px;
    border-radius:20px;
    cursor:pointer;
}

#cookieBanner button:hover { background:#1F466A; }

/* ===============================
   Cookie-Banner Mobile
================================ */
@media (max-width: 768px){
    #cookieBanner {
        flex-direction: column;      /* Text über Button */
        text-align: center;
        top: 20px;                   /* weiter oben für Mobilgeräte */
        padding: 15px 10px;
        gap: 10px;                   /* Abstand zwischen Text und Button */
        font-size: 14px;
    }

    #cookieBanner button {
        width: 100%;                 /* volle Breite */
        max-width: 200px;            /* optional: nicht zu breit */
        margin: 0 auto;
    }
}