*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    line-height:1.7;
    color:#333;
    background:#fff;
}

/* ---------------- HEADER ---------------- */

header{
    min-height:70vh;
    background:url("images/header_2.png") center center/cover no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 20px;
}

.overlay{
    background:rgba(0,0,0,.8);
    padding:40px;
    text-align:center;
    color:white;
    max-width:900px;
    width:100%;
}

.overlay h1{
    font-size:clamp(2rem,5vw,3.5rem);
    margin-bottom:20px;
}

.overlay p{
    font-size:clamp(1rem,2vw,1.25rem);
}

/* ---------------- TOPBAR ---------------- */

.topbar{
    background:#1f1f1f;
    color:white;
    font-size:.95rem;
}

.topbar-content{
    display:flex;
    justify-content:flex-end;
    gap:30px;
    padding:12px 20px;
    flex-wrap:wrap;
}

.topbar span{
    display:flex;
    align-items:center;
}

/* ---------------- NAVIGATION ---------------- */

nav{
    background:#222;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
    padding:15px;
    position:sticky;
    top:0;
    z-index:1000;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    white-space:nowrap;
}

nav a:hover{
    color:#d4af37;
}

/* ---------------- GENERAL ---------------- */

.container{
    width:min(1200px,92%);
    margin:auto;
    padding:60px 0;
}

h2{
    font-size:clamp(1.8rem,4vw,2.5rem);
    margin-bottom:30px;
}

img{
    max-width:100%;
    display:block;
}

/* ---------------- ABOUT ---------------- */

.about{
    display:grid;
    grid-template-columns:minmax(250px,350px) 1fr;
    gap:50px;
    align-items:center;
}

.about img{
    border-radius:8px;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

/* ---------------- GREY SECTION ---------------- */

.gray{
    background:#f4f4f4;
}

/* ---------------- RECHTSGEBIETE ---------------- */

.leistungen{
    display:grid;
    grid-template-columns:1fr minmax(280px,450px);
    gap:40px;
    align-items:center;
}

.leistungen img{
    border-radius:8px;
}

ul{
    columns:2;
    column-gap:50px;
}

li{
    margin-bottom:12px;
}

/* ---------------- CARDS ---------------- */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    margin-top:30px;
}

.card{
    background:white;
    padding:35px;
    text-align:center;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

/* ---------------- FOOTER ---------------- */

footer{
    background:#222;
    color:white;
    text-align:center;
    padding:30px;
}

/* ---------------- TABLETS ---------------- */

@media (max-width:900px){

    header{
        min-height:55vh;
    }

    .about,
    .leistungen{
        grid-template-columns:1fr;
        text-align:center;
    }

    .about img,
    .leistungen img{
        max-width:450px;
        margin:auto;
    }

    ul{
        columns:1;
    }

    .container{
        padding:50px 20px;
    }

}

/* ---------------- PHONES ---------------- */

@media (max-width:600px){

    header{
        min-height:45vh;
    }

    .overlay{
        padding:25px;
    }

    .container{
        width:94%;
        padding:40px 0;
    }

    nav{
        gap:15px;
        padding:12px;
    }

    nav a{
        font-size:.95rem;
    }

    .topbar-content{
        flex-direction:column;
        justify-content:center;
        align-items:center;
        gap:8px;
        text-align:center;
    }

    .card{
        padding:25px;
    }

}
