
/* Grundlegende Einstellungen */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    
    /* NEU: Hintergrund für die gesamte Seite */
    background: url('Bilder/Holzhintergrund.jpg') center top fixed; 
    background-size: cover; 
}

/* Definition der Holzfarbe (Warmes Braun) */
:root {
    --wood-brown: #964b00; /* Dunkle Holzfarbe */
    --light-wood: #886551; /* Helle Holzfarbe / Beige */
    --accent-color: #e55039; /* Akzentfarbe für Buttons */
}

/* *** Navigationsleiste *** */
/* *** Navigationsleiste *** */
.navbar {
    position: center;
    top: 0;
    /* ÄNDERUNG: Hintergrundbild hinzugefügt, leicht dunkle Transparenz */
    background: url('Bilder/Gras.jpg') center center/cover no-repeat;
    background-color: rgba(0, 0, 0, 0.15); /* Hinzufügen einer leichten, dunklen Überlagerung für Kontrast */
    background-blend-mode: multiply; /* Mischt die Farbe mit dem Bild für den Transparenz-Effekt */
    
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Etwas stärkerer Schatten, da der Hintergrund dunkler ist */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
}

/* Anpassung der Links in der Navbar, damit sie auf dem dunkleren Holz gut sichtbar sind */
.navbar a {
    text-decoration: none;
    color: white; /* NEU: Links weiß machen */
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5); /* Leichter Textschatten für bessere Lesbarkeit */
    margin-left: 20px;
    font-weight: 600; /* Etwas dickerer Font */
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--accent-color); /* Akzentfarbe für Hover */
}

/* Wichtig: Das Logo (Text oder Bild) muss auch angepasst werden, falls es dunkle Schrift hat */
.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white; /* NEU: Logo-Text (falls er noch da ist) weiß machen */
}

/* Styling für das Logo-Bild (Neu eingefügt) */
.logo img {
    height: 40px; 
    width: auto; 
    vertical-align: middle;
}

.navbar a {
    text-decoration: none;
    color: #333;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--accent-color);
}


/* *** Allgemeine Sektionen *** */
.content-section {
    padding: 80px 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    /* NEU: Hintergrundfarbe hinzufügen, um über dem Holz zu liegen */
    background-color: white; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Leichter Schatten zur Abhebung vom Holz */
    margin-bottom: 30px; /* Abstand zwischen den Sektionen */
    border-radius: 8px; /* Leicht abgerundete Ecken */
}

/* Anpassung der Info-Sektion (Firmeninfo/Features) */
.info-section {
    /* Setzt den Hintergrund der Info-Sektion auf weiß */
    background-color: white; 
    display: flex;
    text-align: center;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
}

/* WICHTIG: Die Kontakt-Sektion (wood-bg) behält ihren hellen Holz-Hintergrund */
.wood-bg {
    background-color: var(--light-wood); 
}

h1, h2 {
    color: var(--wood-brown);
    margin-bottom: 20px;
    text-align: center;
}

/* *** HOME Sektion (Hero) *** */
.home-hero {
    /* Hintergrund entfernen, da er jetzt auf dem body liegt */
    background: none; 
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button {
    /* WICHTIG: Erlaubt Breiten- und Höhenanpassungen und die Darstellung als Block */
    display: center; 
    
    /* Button-Aussehen */
    background-color: #3f51b5; /* Beispiel-Farbe */
    color: white;
    padding: 12px 25px;
    border: none; /* Entfernt den Standard-Button-Rand */
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    
    /* Entfernt die Link-Unterstreichung */
    text-decoration: none; 
    
    /* Animation für Hover-Effekt */
    transition: background-color 0.3s;
   
}
 .cta-button:hover {
    background-color: #c0392b;
}


/* *** Info Sektion (Features) *** */
.info-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
}

.feature-box {
    flex-basis: 30%;
    min-width: 280px;
    padding: 20px;
}

.feature-box img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}


/* *** PRODUKTE Sektion (Galerie) *** */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Wasserzeichen für Bilder */
.watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.8em;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 0 0 5px white;
}

/* *** KONTAKT & FOOTER (Holz-Hintergrund) *** */
.wood-bg {
    background-color: var(--light-wood); /* Beibehalten für Kontakt-Sektion */
}

/* Anpassung des Footers, um ihn transparent zu machen */
.footer {
    padding: 20px 5%;
    color: white; /* NEU: Schrift wird Weiß */
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* Randfarbe anpassen, da Hintergrund dunkel ist */
    
    /* NEU: Hintergrund entfernen und optional einen leichten Schatten hinzufügen */
    background-color: transparent; 
    box-shadow: none; 
}

.contact-section {
    padding-top: 50px;
    padding-bottom: 50px;
}


/* Kontaktformular Styling - Transparent auf beigem Hintergrund */
.contact-form {
    max-width: 500px;
    margin: 20px auto 40px;
    text-align: left;
    padding: 0; /* padding entfernen, da die Sektion es schon hat */
    background-color: transparent; /* Hintergrund entfernen, um das Beige des wood-bg zu zeigen */
    border-radius: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form button.cta-button {
    width: 100%;
}

.social-links h3 {
    margin-top: 0;
    color: #333;
}

.social-links a {
    color: var(--wood-brown);
    font-weight: bold;
    text-decoration: none;
}

.footer {
    padding: 20px 5%;
    color: black;
    font-size: 0.9em;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer a {
    color: rgb(17, 3, 3); /* NEU: Links werden Weiß */
    text-decoration: underline;
    text-decoration-color: white; /* Unterstreichung wird auch Weiß */
}

/* *** "Nach Oben" Button *** */
.scroll-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--wood-brown);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    font-size: 1.5em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    transition: background-color 0.3s;
}

.scroll-top-button:hover {
    background-color: #7b3f00;
}


/* ======================================================= */
/* === RESPONSIVE DESIGN (Handy, Tablet, Laptop)         === */
/* ======================================================= */

/* ------------------------------------------------------- */
/* 1. TABLET und kleinere Laptops (Max-Breite: 1024px)     */
/* ------------------------------------------------------- */
@media (max-width: 1024px) {
    
    .content-section {
        padding: 60px 4%;
    }

    .info-section {
        gap: 30px;
        justify-content: center;
    }

    .feature-box {
        flex-basis: 45%;
        margin-bottom: 20px;
    }

    .product-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}


/* ------------------------------------------------------- */
/* 2. HANDY und kleine Tablets (Max-Breite: 768px)         */
/* ------------------------------------------------------- */
@media (max-width: 768px) {
    
    .navbar {
        flex-direction: column;
        padding: 15px 4%;
    }

    .navbar nav {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    .navbar a {
        margin: 0 10px;
        font-size: 0.9em;
    }

    .logo img {
        height: 35px; /* Logo etwas kleiner auf Handys/Tablets */
    }

    .home-hero {
        min-height: 50vh;
    }

    .hero-text {
        padding: 30px;
    }

    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }

    .feature-box {
        flex-basis: 80%;
        max-width: 400px;
    }
}


/* ------------------------------------------------------- */
/* 3. KLEINE HANDYS (Max-Breite: 480px)                    */
/* ------------------------------------------------------- */
@media (max-width: 480px) {

    .navbar a {
        display: block;
        padding: 5px 0;
        border-bottom: 1px solid #eee;
        margin: 0;
    }
    
    .logo img {
        height: 30px; /* Logo noch kleiner auf sehr kleinen Bildschirmen */
    }

    .hero-text p {
        font-size: 0.9em;
    }
    
    .product-gallery {
        grid-template-columns: 1fr;
    }
    
    .product-item img {
        height: 300px;
    }

    .scroll-top-button {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
        bottom: 10px;
        right: 10px;
    }

}