/* --- Basis-Layout --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Segoe UI', Tahoma, Helvetica, Arial, sans-serif; 
    color: #3e3a35; 
    line-height: 1.6; 
    background-color: #ffffff; 
    overflow-x: hidden; 
}

/* --- Navigation --- */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 50px; /* Standard Desktop-Padding */
    background: #3e3a35; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
} 
.nav-logo img { height: 35px; }
.nav-links { display: flex; }
.nav-links a { 
    color: white; 
    text-decoration: none; 
    margin-left: 30px; 
    font-weight: bold; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
}

/* Burger Menü */
.nav-toggle { display: none; }
.nav-toggle-label { 
    display: none; 
    width: 30px; 
    height: 25px; 
    cursor: pointer; 
    position: relative; 
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after { 
    display: block; 
    background: white; 
    height: 3px; 
    width: 30px; 
    border-radius: 2px; 
    position: absolute; 
}
.nav-toggle-label span { top: 11px; }
.nav-toggle-label span::before { content: ''; top: -10px; }
.nav-toggle-label span::after { content: ''; bottom: -10px; }

/* --- Hero Sektion --- */
.hero { 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: white; 
    position: relative; 
    padding: 80px 20px; 
}
.hero::before { 
    content: ""; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(rgba(62, 58, 53, 0.7), rgba(62, 58, 53, 0.7)),
                url("./assets/holz.png") center/cover no-repeat; 
    z-index: -1; 
}
.hero .logo img { height: 140px; margin-bottom: 25px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 15px; }
.hero h2 { font-weight: 300; margin-bottom: 30px; font-style: italic; }

.btn-more { 
    display: inline-block; 
    margin-top: 60px; 
    padding: 12px 32px; 
    border: 2px solid white; 
    color: white; 
    background: transparent; 
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.9rem; 
    border-radius: 12px; 
    transition: 0.3s ease; 
    opacity: 0.9; 
}
.btn-more:hover { 
    background: #c79a63; 
    border-color: #c79a63; 
    color: white; 
    opacity: 1; 
}

/* --- Leistungen (6er Grid) --- */
.leistungen { padding: 100px 20px; text-align: center; }
.leistungen-grid { 
    margin-top: 60px; 
    display: grid; 
    gap: 50px; 
    max-width: 1200px; 
    margin: 60px auto 0; 
    grid-template-columns: 1fr; 
}

/* Responsive Grid */
@media (min-width: 768px) { 
    .leistungen-grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (min-width: 1024px) { 
    .leistungen-grid { grid-template-columns: repeat(3, 1fr); } 
}

.card { 
    background: transparent; 
    border: none; 
    padding: 0; 
    display: flex; 
    align-items: flex-start; 
    gap: 25px; 
    text-align: left; 
    transition: transform 0.3s ease; 
}
.card:hover { transform: translateX(10px); }

.card-icon { 
    width: 60px; 
    height: 60px; 
    min-width: 60px; 
    padding: 12px; 
    background: #f4f4f4; 
    border-radius: 50%; 
    object-fit: contain; 
    transition: 0.3s; 
}
.card:hover .card-icon { 
    background: #e9e9e9; 
    transform: scale(1.05); 
}

.card h3 { 
    font-size: 1.1rem; 
    margin-bottom: 10px; 
    color: #3e3a35; 
    border-bottom: 2px solid #c79a63; 
    display: inline-block; 
    padding-bottom: 5px; 
    text-transform: uppercase; 
}
.card p { font-size: 1rem; color: #777; line-height: 1.7; }

/* --- Galerie Sektion --- */
.gallery { 
    padding: 80px 20px; 
    text-align: center; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    overflow: hidden; 
}
.gallery h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); margin-bottom: 10px; }
.gallery p { 
    color: #777; 
    margin-bottom: 40px; 
    padding: 0 20px; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
}

.gallery-grid { 
    display: grid; 
    gap: 25px; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    width: 100%; 
    margin: 0 auto; 
}

.gallery-item { 
    background: #fff; 
    border: 1px solid #e0e0e0; 
    padding: 10px; 
    border-radius: 10px; 
    transition: 0.3s; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex; 
    flex-direction: column; 
}
.gallery-item:hover { 
    border-color: #c79a63; 
    transform: translateY(-5px); 
}

.gallery-item img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    object-position: center; 
    border-radius: 8px; 
    display: block; 
}

.gallery-item p { 
    font-weight: bold; 
    text-transform: uppercase; 
    color: #3e3a35; 
    font-size: 0.9rem;
    margin: 15px 0 5px 0;
    padding: 0;
}

/* --- Kontakt & Reviews --- */
.contact { padding: 80px 20px; text-align: center; }
.contact-card { 
    max-width: 700px; 
    background: #ffffff; 
    padding: 50px; 
    border-radius: 15px; 
    margin: 30px auto 0; 
    border: 1px solid #e0e0e0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}
.contact-divider { border-top: 2px solid #c79a63; margin: 30px 0; padding-top: 30px; }
.contact-info p { margin: 8px 0; color: #555; }
.contact-info a { color: #3e3a35; font-weight: bold; text-decoration: none; }

.reviews { max-width: 900px; margin: 80px auto; text-align: center; padding: 0 20px; }
.stars { color: #f4b400; font-size: 1.4rem; margin-bottom: 10px; }

/* --- Footer --- */
footer { 
    background: #3e3a35; 
    color: #dcd0c1; 
    text-align: center; 
    padding: 40px; 
}
footer a { color: #c79a63; text-decoration: none; margin: 0 10px; }

/* --- Finale Mobile Optimierung --- */
@media screen and (max-width: 768px) {
    /* Navbar: Nutzt die 'Safe Area' des iPhones */
    .navbar {
        padding-top: calc(15px + env(safe-area-inset-top)) !important;
        padding-bottom: 15px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        height: auto !important;
        min-height: 60px !important;
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
    }

    .nav-logo {
        display: flex !important;
        align-items: center !important;
        height: 30px !important;
    }

    .nav-logo img {
        height: 25px !important;
        width: auto !important;
        max-width: 140px !important;
        display: block !important;
    }

    /* Hero Anpassung */
    .hero {
        padding-top: 100px !important; /* Verhindert, dass Text unter Navbar rutscht */
    }

    .hero .logo img {
        height: 90px !important;
        margin-bottom: 20px !important;
    }

    .hero::before {
        background-attachment: scroll !important;
    }
}

@media screen and (max-width: 900px) and (orientation: landscape) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 45px !important; /* Sehr flach im Querformat */
        padding: 5px 20px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        z-index: 9999 !important;
        background: #3e3a35 !important;
    }

    .nav-logo {
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-logo img {
        height: 25px !important; /* Kleiner, damit es nicht abgeschnitten wird */
        width: auto !important;
        display: block !important;
    }

    /* Das Hero-Element darf nicht unter die Navbar rutschen */
    .hero {
        padding-top: 50px !important; 
        height: auto !important;
        min-height: 100vh !important;
    }
}

