/* WEBSEITE RÄBER HOLZ 
   Farbe: RAL 6013 Schilfgrün (#70784b)
   Design: Modernes Handwerk & Beratung inkl. Hamburger-Menü
*/

:root {
    --raeber-gruen: #70784b; 
    --raeber-gruen-dark: #5d643e;
    --dunkel: #2d311f;
    --hell: #f4f4f2;
    --weiss: #ffffff;
    --border: #dddddd;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* --- GRUNDSTELLUNGEN --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    line-height: 1.6; 
    color: var(--dunkel); 
    background: var(--weiss); 
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Verhindert seitliches Wackeln beim Menü-Ausfahren */
}

/* --- NAVIGATION --- */
header { 
    background: var(--weiss); 
    padding: 1rem 5%; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px var(--shadow); 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px;
    margin: 0 auto;
}

.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    color: var(--raeber-gruen); 
    font-weight: 800; 
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    z-index: 1100;
}

.logo img { 
    height: 50px; 
    width: auto;
    margin-right: 12px; 
}

/* Menü-Liste Desktop */
.nav-list { 
    display: flex; 
    list-style: none; 
}

.nav-list li { 
    margin-left: 25px; 
}

.nav-list li a { 
    text-decoration: none; 
    color: var(--dunkel); 
    font-weight: 600; 
    font-size: 0.95rem;
    transition: 0.3s ease; 
}

.nav-list li a:hover { 
    color: var(--raeber-gruen); 
}

/* Hamburger Icon (Standardmäßig versteckt) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--raeber-gruen);
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* --- SEKTIONEN & HERO --- */
.hero { 
    height: 70vh; 
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), 
                url('https://images.unsplash.com/photo-1510627489930-0c1b0ba9448f?auto=format&fit=crop&w=1200'); 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-align: center; 
    padding: 0 20px;
}

.hero h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    margin-bottom: 15px; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 25px;
}

.page-header { 
    background: var(--raeber-gruen); 
    padding: 100px 5% 60px; 
    text-align: center; 
    color: white; 
}

.section { 
    padding: 80px 5%; 
    max-width: 1100px; 
    margin: auto; 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.card { 
    border-top: 6px solid var(--raeber-gruen); 
    padding: 40px; 
    background: var(--hell); 
    border-radius: 4px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px var(--shadow);
}

.card h3 { 
    color: var(--raeber-gruen); 
    margin-bottom: 15px; 
    font-size: 1.4rem;
}

/* --- KONTAKTFORMULAR & MAP --- */
.contact-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: start;
}

.contact-info h3 { 
    color: var(--raeber-gruen); 
    margin-bottom: 20px; 
    font-size: 1.8rem;
}

.map-container {
    width: 100%;
    margin-top: 25px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.map-container iframe {
    width: 100%;
    display: block;
}

form { 
    display: flex; 
    flex-direction: column; 
}

label { 
    display: block; 
    margin-bottom: 6px; 
    font-weight: 700; 
    font-size: 0.85rem; 
    color: var(--raeber-gruen); 
    text-transform: uppercase;
}

input, select, textarea { 
    padding: 14px; 
    margin-bottom: 20px; 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    font-size: 1rem; 
    width: 100%;
    background: #fff;
}

textarea { 
    height: 160px; 
    resize: vertical; 
}

.btn { 
    background: var(--raeber-gruen); 
    color: white; 
    padding: 16px 32px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 700; 
    text-decoration: none; 
    display: inline-block; 
    text-align: center;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.btn:hover { 
    background: var(--raeber-gruen-dark); 
}

/* --- FOOTER --- */
footer { 
    background: var(--dunkel); 
    color: #a0a58a; 
    padding: 60px 5%; 
    text-align: center; 
}

footer a { 
    color: var(--weiss); 
    text-decoration: none; 
    margin: 0 12px; 
    font-size: 0.9rem;
    font-weight: 500;
}

footer a:hover { 
    text-decoration: underline; 
}

/* --- MOBILE OPTIMIERUNG (MEDIA QUERIES) --- */

@media (max-width: 768px) {
    /* Hamburger Icon anzeigen */
    .menu-toggle {
        display: flex;
    }

    /* Animation für Hamburger zu "X" */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    /* Menü-Liste als Overlay von rechts oder oben */
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%; /* Versteckt außerhalb des Bildschirms */
        width: 80%;
        height: 100vh;
        background-color: var(--weiss);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1050;
    }

    .nav-list.active {
        right: 0; /* Fährt herein */
    }

    .nav-list li {
        margin: 20px 0;
        margin-left: 0;
    }

    .nav-list li a {
        font-size: 1.4rem;
    }

    /* Hero & Content Fixes */
    .hero { height: 55vh; }
    .section { padding: 50px 20px; }
    .contact-container { grid-template-columns: 1fr; gap: 40px; }
    .map-container iframe { height: 250px; }

    input, select, textarea {
        font-size: 16px;
        padding: 16px;
    }

    .btn { width: 100%; padding: 18px; }
    .grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .logo span { font-size: 1.1rem; }
    .logo img { height: 40px; }
    .hero h1 { font-size: 1.8rem; }
}