/* =====================================================
   Höhenarbeit Öfele
   style.css
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    color:#222;
    background:#f7f7f7;
    line-height:1.6;
    padding-top:90px;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

.container{
    width:min(1200px,92%);
    margin:auto;
}

/* ================= HEADER ================= */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:90px;
    background:#ffffff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    z-index:1000;
}

header .container{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo img{
    height:72px;
    width:auto;
}

nav ul{
    display:flex;
    gap:35px;
}

nav a{
    font-weight:600;
    transition:.3s;
}

nav a:hover{
    color:#d38b00;
}

.telefon{
    background:#d38b00;
    color:#fff;
    padding:12px 22px;
    border-radius:6px;
    font-weight:bold;
    transition:.3s;
}

.telefon:hover{
    background:#b77700;
}

/* ================= HERO ================= */

.hero{
    position:relative;
    height:85vh;
    min-height:650px;
    background:url("bilder/hero.jpg") center center/cover no-repeat;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);

    display:flex;
    align-items:center;
}

.hero-content{
    color:#fff;
    max-width:700px;
}

.hero h1{
    font-size:3.6rem;
    line-height:1.15;
    margin-bottom:25px;
}

.hero p{
    font-size:1.35rem;
    margin-bottom:35px;
}

.button{
    display:inline-block;
    background:#d38b00;
    color:#fff;
    padding:16px 32px;
    border-radius:6px;
    font-weight:bold;
    transition:.3s;
}

.button:hover{
    background:#b77700;
}

/* ================= ALLGEMEIN ================= */

section{
    padding:90px 0;
    scroll-margin-top:110px;
}

h2{
    text-align:center;
    font-size:2.3rem;
    margin-bottom:25px;
}

.section-text{
    max-width:900px;
    margin:0 auto 60px;
    text-align:center;
    color:#555;
    font-size:1.1rem;
}

/* ===========================
   LEISTUNGEN
=========================== */

.leistungen-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:35px;
    margin-top:50px;
}

.leistung{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    transition:.3s;
}

.leistung:hover{
    transform:translateY(-8px);
}

.leistung img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.leistung h3{
    padding:25px 25px 15px;
    font-size:1.35rem;
}

.leistung p{
    padding:0 25px 30px;
    color:#555;
}

/* ===========================
   REFERENZEN
=========================== */

.referenz{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
    margin:80px 0 40px;
}

.referenz.reverse{
    direction:rtl;
}

.referenz.reverse>*{
    direction:ltr;
}

.referenz-text h3{
    font-size:2rem;
    margin-bottom:20px;
}

.referenz-text p{
    margin-bottom:18px;
    color:#555;
}

.referenz-bild img{
    width:100%;
    height:500px;
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
}

/* ===========================
   BILDERGALERIE
=========================== */

.bilder-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin-bottom:90px;
}

.bilder-grid img{
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:12px;
    transition:.3s;
    cursor:pointer;
    box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.bilder-grid img:hover{
    transform:scale(1.03);
}

/* ===========================
   ÜBER UNS
=========================== */

.vorteile-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
    margin-top:50px;
}

.vorteil{
    background:#fff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.vorteil h3{
    margin-bottom:18px;
    color:#d38b00;
}

.vorteil p{
    color:#555;
}

/* =====================================================
   KONTAKT
===================================================== */

.kontakt-grid{
    display:grid;
    grid-template-columns:380px 1fr;
    gap:50px;
    margin-top:50px;
}

.kontakt-info{
    background:#ffffff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.kontakt-info h3{
    margin-bottom:20px;
    color:#d38b00;
}

.kontakt-info p{
    margin-bottom:20px;
}

.kontakt-info a{
    color:#d38b00;
    font-weight:600;
}

.kontakt-form{
    background:#ffffff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.kontakt-form label{
    display:block;
    margin-top:20px;
    margin-bottom:8px;
    font-weight:600;
}

.kontakt-form input,
.kontakt-form textarea{

    width:100%;
    padding:14px;
    border:1px solid #d5d5d5;
    border-radius:8px;
    font-size:1rem;

}

.kontakt-form textarea{
    resize:vertical;
}

.checkbox{

    display:flex;
    gap:10px;
    align-items:flex-start;
    margin:25px 0;

}

.checkbox input{

    width:auto;
    margin-top:4px;

}

/* =====================================================
   FOOTER
===================================================== */

footer{

    background:#1f1f1f;
    color:#ffffff;
    margin-top:80px;

}

.footer-grid{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px;
    padding:70px 0;

}

.footer-logo{

    width:180px;
    margin-bottom:20px;

}

footer h3{

    margin-bottom:20px;
    color:#d38b00;

}

footer p{

    color:#d0d0d0;
    line-height:1.8;

}

.footer-links{

    list-style:none;

}

.footer-links li{

    margin-bottom:12px;

}

.footer-links a{

    color:#d0d0d0;
    transition:.3s;

}

.footer-links a:hover{

    color:#d38b00;

}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.12);
    padding:25px 0;
    text-align:center;
    color:#bdbdbd;

}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:1100px){

    .referenz{

        grid-template-columns:1fr;
        gap:35px;

    }

    .referenz.reverse{

        direction:ltr;

    }

    .kontakt-grid{

        grid-template-columns:1fr;

    }

    .footer-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media (max-width:900px){

    header{

        height:auto;
        padding:15px 0;

    }

    body{

        padding-top:120px;

    }

    header .container{

        flex-direction:column;
        gap:18px;

    }

    nav ul{

        flex-wrap:wrap;
        justify-content:center;
        gap:20px;

    }

    .hero{

        min-height:550px;

    }

    .hero h1{

        font-size:2.6rem;

    }

    .hero p{

        font-size:1.15rem;

    }

    .leistungen-grid,
    .vorteile-grid,
    .bilder-grid{

        grid-template-columns:1fr;

    }

    .referenz-bild img{

        height:350px;

    }

}

@media (max-width:600px){

    .hero{

        min-height:480px;

    }

    .hero h1{

        font-size:2rem;

    }

    h2{

        font-size:1.8rem;

    }

    .telefon{

        width:100%;
        text-align:center;

    }

    .footer-grid{

        grid-template-columns:1fr;

        text-align:center;

    }

    .footer-logo{

        margin:0 auto 20px;

    }

}

/* ===========================
   Header beim Scrollen
=========================== */

header{

    transition:.35s;

}

header.header-small{

    height:70px;

}

header.header-small .logo img{

    height:58px;

}

header.header-small .container{

    height:70px;

}

/* ===========================
   Aktiver Menüpunkt
=========================== */

nav a.active{

    color:#d38b00;

}