:root {
  --accent-warm: #fab721;
  --green-deep: #008d36;
  --violet: #622483;
  --brown-red: #772e25;
  --teal: #006466;
  --bg-light: #f5f7f8;
  --text-dark: #1a1a1a;
  --shadow-light: rgba(0, 0, 0, 0.1);
}

/* Global */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 110px; 
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: fixed;
  width: 100%;
  top: 0; 
  box-sizing: border-box; 
  background: #fff;
  box-shadow: 0 2px 10px var(--shadow-light);
  z-index: 1000;
}

/* --- NEW STYLE FOR LANGUAGE BUTTON --- */
.lang-toggle-btn {
    padding: 10px 15px;
    border: 2px solid var(--teal);
    background: none;
    color: var(--teal);
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle-btn:hover {
    background: var(--teal);
    color: #fff;
}
/* ------------------------------------- */

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 70px;
  width: auto;
}

.logo-text h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--violet);
}

.logo-text p {
  margin: 0;
  font-size: 11px; 
  color: var(--teal);
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--teal);
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--green-deep);
}

/* Hero Section */
.hero {
  /* Letztes funktionierendes Styling beibehalten */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Nur Text links */
  padding: 80px 50px; 
  min-height: 70vh;
  position: relative; 
  overflow: hidden; 
  z-index: 1;
  
  /* HINTERGRUND (Peter Piccottini Bild) */
  background-image: url('https://i.ibb.co/5Wf6DKnF/photo-5870737995034463087-y.jpg');
  background-size: cover; 
  background-position: center; 
}

/* Helles Overlay auf der linken Seite für gute Text-Lesbarkeit */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Heller Verlauf von links nach rechts */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.7) 30%, rgba(255, 255, 255, 0.2) 60%, rgba(255, 255, 255, 0.0) 100%);
    z-index: 2;
}

/* Hero Text (Links) */
.hero-text {
  max-width: 50%;
  z-index: 3; 
  color: var(--text-dark); 
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); 
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--violet);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.cta-btn {
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: 6px;
  background: var(--accent-warm);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-btn:hover {
  background: var(--green-deep);
  transform: scale(1.05);
}

/* About Section */
.about {
  padding: 100px 50px;
  text-align: center;
  background: var(--bg-light);
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--violet);
}

/* STYLING FÜR ABOUT LOGO */
.about-logo {
    max-width: 400px; /* Maximale Breite des Logos */
    height: auto;
    margin: 0 auto 40px auto; /* Zentriert und Abstand zur Beschreibung */
    display: block;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* ENDE STYLING FÜR ABOUT LOGO */

.about-description {
    max-width: 900px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
}

/* Offer Section within About */
.offer-section {
    margin: 50px auto;
    padding: 40px;
    max-width: 1000px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-light);
    text-align: left;
}

.offer-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--green-deep);
    text-align: center;
}

.offer-list-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.offer-group {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    border-radius: 8px;
    background: var(--bg-light);
}

.offer-group h4 {
    font-size: 1.3rem;
    color: var(--teal);
    margin-top: 0;
    border-bottom: 2px solid var(--accent-warm);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.offer-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-group li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-dark);
    /* Custom bullet point with color */
    padding-left: 1.5em;
    position: relative;
}

.offer-group li::before {
    content: '•';
    color: var(--accent-warm); 
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
}

.we-are-nature {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--violet);
    text-align: center;
}

/* BILDERGALERIE SEKTION */
.image-gallery-section {
    display: grid;
    /* Angepasst für 12 Bilder, bleibt aber responsiv */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin: 50px auto;
    max-width: 1000px;
    padding: 0 50px; 
}

.gallery-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 180px; 
    object-fit: cover; 
    display: block;
}

.gallery-description {
    padding: 15px;
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--teal);
    text-align: center;
}
/* ENDE BILDERGALERIE SEKTION */


/* Team Section within About */
.team-section h3 {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--green-deep);
}

.team-list {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  gap: 30px;
  flex-direction: row; 
  align-items: stretch; 
  max-width: 900px; 
  margin: 0 auto;
}

.team-member {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  flex: 1; 
  min-width: 300px; 
  box-sizing: border-box;
  text-align: left;
  box-shadow: 0 4px 15px var(--shadow-light);
  display: flex;
  flex-direction: column; 
  align-items: center; 
}

.team-member img {
  width: 150px; 
  height: 150px;
  border-radius: 50%; 
  object-fit: cover;
  object-position: top; 
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.team-member h4 {
  font-size: 1.4rem;
  color: var(--teal);
  margin-top: 0;
  text-align: center; 
  width: 100%;
}

.team-member p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: left; 
}

/* Projects Section */
.projects {
  padding: 100px 50px;
  text-align: center;
  background: #fff;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--violet);
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.project-item {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 25px 20px;
  width: 280px; 
  box-shadow: 0 6px 20px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px var(--shadow-light);
}

.project-item h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--teal);
}

.project-item a {
  text-decoration: none;
  color: var(--accent-warm);
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-item a:hover {
  color: var(--green-deep);
}

/* Projektbilder in den kleinen Boxen */
.project-item > img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Styles for Das Bionische Haus */
.bionic-house-item {
    max-width: 340px; 
    width: 280px;
    text-align: center; 
    margin-bottom: 30px; 
    transform: none; 
    box-shadow: 0 8px 30px var(--shadow-light);
    /* order: -1;  (Entfernt, um es an die letzte Stelle zu setzen) */
    padding-bottom: 15px; 
}

.bionic-house-content {
    display: flex;
    flex-direction: column; 
    gap: 15px; 
    align-items: center; 
    margin-top: 15px;
    text-align: left; 
}

.bionic-house-item img {
    max-width: 100%; 
    height: auto;
    border-radius: 8px;
    flex-shrink: 0; 
}

.bionic-house-item .project-description {
    font-size: 0.95rem; 
    line-height: 1.6;
    margin: 0;
    text-align: left; 
}

/* Stil für ausgeblendeten Text und den Read-More-Button */
#hidden-text {
    display: none; 
}

#read-more-btn {
    display: block; 
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.95rem;
}


/* Partners Section */
.partners {
  padding: 100px 50px;
  text-align: center;
  background: var(--bg-light); 
}

.partners h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--violet);
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.partner-item {
  background: #fff;
  border-radius: 12px;
  padding: 30px 25px;
  max-width: 400px;
  box-shadow: 0 6px 20px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px var(--shadow-light);
}

.partner-logo {
  margin-bottom: 20px;
}

.partner-logo img {
  max-width: 150px;
  height: auto;
}

.partner-image {
  margin-bottom: 20px;
}

.partner-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.partner-item h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--violet);
}

.partner-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-dark);
  text-align: left;
}

.partner-info {
  text-align: left;
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
}

.partner-info p {
  margin: 8px 0;
  font-size: 0.95rem;
}

.partner-info p strong {
  color: var(--violet);
}

.partner-info a {
  text-decoration: none;
  color: var(--accent-warm);
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 12px;
}

.partner-info a:hover {
  color: var(--green-deep);
}

/* Contact Section */
.contact {
  padding: 100px 50px;
  text-align: center;
  background: #fff;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--violet);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.contact-item {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 30px 25px;
  width: 280px;
  box-shadow: 0 6px 20px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px var(--shadow-light);
}

.contact-item h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--violet);
}

.contact-item p {
  margin: 0;
  font-size: 1rem;
}

.contact-item a {
  text-decoration: none;
  color: var(--accent-warm);
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--green-deep);
}

/* --- Media Queries for Mobile Responsiveness (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Global Adjustments */
    body {
        padding-top: 0; 
    }

    /* Navbar Adjustments */
    .navbar {
        padding: 10px 20px;
        flex-direction: column; 
        gap: 10px;
        position: static; 
        width: auto;
    }

    .logo {
        flex-direction: column; 
        gap: 5px;
        text-align: center;
    }

    .logo img {
        height: 50px;
    }
    
    .logo-text p {
      font-size: 10px; 
    }

    /* Move Lang Button below Nav on Mobile */
    .lang-toggle-btn {
        margin-top: 10px;
        order: 3; /* Move it to the bottom of the flex container */
    }

    nav ul {
        gap: 15px; 
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Hero Section Adjustments */
    .hero {
        flex-direction: column; 
        padding: 40px 20px;
        min-height: 50vh;
        background-position: center; 
    }
    
    .hero::before {
        /* Overlay auf Mobilgeräten anpassen, um den gesamten Text abzudecken */
        background: rgba(255, 255, 255, 0.7); 
    }

    /* Hero Text (Links) */
    .hero-text {
        max-width: 100%;
        order: 2; 
        margin-top: 30px;
        text-align: center;
        color: var(--text-dark); 
    }

    .hero-text h1, .hero-text p {
        color: var(--text-dark); 
        text-shadow: none; 
    }

    /* About Logo Mobile */
    .about-logo {
        max-width: 90%; 
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Section Padding Adjustments */
    .projects, .partners, .contact, .about {
        padding: 60px 20px;
    }
    
    /* Offer Section Mobile Adjustments */
    .offer-section {
        padding: 30px 20px;
    }
    
    .offer-list-container {
        flex-direction: column;
    }
    
    .offer-group {
        min-width: auto;
    }

    /* Image Gallery Mobile Adjustments */
    .image-gallery-section {
        padding: 0 20px;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .gallery-item img {
        height: 150px; 
    }

    /* Project Item Adjustments */
    .project-item {
        width: 100%;
        max-width: none;
    }

    /* Bionic House Mobile Adjustment */
    .bionic-house-item {
        width: 100%;
        max-width: none;
    }
    
    .bionic-house-content {
        text-align: center;
    }
    .bionic-house-item .project-description {
        text-align: left;
    }

    /* Other Item Adjustments */
    .contact-item, .partner-item, .team-member {
        width: 100%; 
        max-width: none;
    }
    
    .about-description {
        text-align: justify;
    }

    /* Team Section Mobile Fix (wieder vertikal auf schmalen Bildschirmen) */
    .team-list {
        flex-direction: column; 
    }
    
    /* Team Member Image Styling on Mobile */
    .team-member img {
        width: 100px;
        height: 100px;
    }
}