/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #f4f7fa;
  overflow-x: hidden;
  min-height: 100vh; /* Ensure body takes full viewport height */
  display: flex;
  flex-direction: column;
}

html {
  height: 100%; /* Ensure html takes full height */
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.logo img {
  height: 100px; /* Larger logo */
}

.logo {
  text-decoration: none; /* Ensure logo link has no underline */
}

.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #2d3748;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #2d3748;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #38a169; /* Green hover effect */
}

/* Sections */
.section {
  padding: 4rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  flex: 1 0 auto; /* Allow section to grow but not shrink */
}

.section:nth-child(odd) {
  background: linear-gradient(135deg, #f4f7fa 0%, #e6fffa 100%); /* Light gray to light green */
}

.section:nth-child(even) {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7fa 100%); /* White to light gray */
}

h1, h2 {
  color: #2d3748;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #38a169, #2d3748); /* Green to dark gray gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #38a169; /* Green for service titles */
  margin: 0.5rem 0;
}

p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #4a5568;
}

/* Services */
.services {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.service-item {
  text-align: center;
  max-width: 350px; /* Increased to give more space */
}

.service-item img {
  width: 100%;
  height: 150px; /* Reduced height to show more of the image */
  object-fit: contain; /* Changed to contain to show entire image */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-item img:hover {
  transform: scale(1.05);
}

.service-item p {
  margin-top: 0.5rem;
}

/* Values */
.values {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.value-item {
  text-align: center;
  max-width: 300px;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Projects */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.project img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project img:hover {
  transform: scale(1.05);
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info .phone {
  font-size: 1.3rem; /* Larger phone number */
}

.contact-info a {
  color: #38a169; /* Green link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #2f855a; /* Darker green on hover */
}

/* Why DitiPro */
.why-ditipro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.reasons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reason-item {
  text-align: left; /* Left-align text within each reason item */
  width: 100%;
  max-width: 600px;
  margin: 0.5rem 0;
}


/* ======================================
   HERO-BEREICH
   ====================================== */
.hero {
  display: flex;
  justify-content: center;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: radial-gradient(circle at 20% 20%, #e0f7f4 0%, #edf1f4 70%);
}

.header-content {
  max-width: 700px;
  margin: 0 auto;
}

/* Hero Headline override */
.header-content h1 {
  color: #22543d;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0,0,0,0.05);
  -webkit-text-fill-color: initial; /* override gradient fill from global h1 */
  background: none;
}

/* Hero Subtitle */
.header-content p {
  color: #2d3748;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Bullet List */
.hero-bullets {
  list-style: none;
  margin: 1rem auto 2rem auto;
  padding: 0;
  color: #2f3e46;
  font-weight: 500;
  line-height: 1.4;
  font-size: 1rem;
  text-align: left;
  display: inline-block;
}

.hero-bullets li {
  margin: 0.3rem 0;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #2f855a, #38a169);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(47,133,90,0.3);
  transition: all 0.2s ease;
  font-size: 1rem;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #38a169, #48bb78);
  box-shadow: 0 15px 30px rgba(47,133,90,0.4);
}



/* ======================================
   FOOTER
   ====================================== */
.footer {
  background: #2d3748;
  color: #fff;
  margin-top: 2rem;
  padding-top: 2rem;
  flex-shrink: 0;
  width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  text-align: left;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer p {
  color: #a0aec0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.footer a {
  color: #a0aec0;
  text-decoration: none;
}

.footer a:hover {
  color: #38a169;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: #a0aec0;
  padding: 1rem 2rem;
}

/* Ensure footer stays at the bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.section:last-child {
  margin-bottom: 0; /* Remove any unwanted margin at the bottom */
}

footer a {
  color: #a0aec0;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  color: #38a169; /* Green hover for footer links */
}







/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 110px; /* Adjusted for larger logo */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 1rem 0;
    text-align: center; /* Center the text in mobile menu */
    width: 100%; /* Ensure full width for centering */
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-content {
    padding: 4rem 0;
  }

  .services {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    width: 100%;
    max-width: 350px;
  }

  .contact-info {
    max-width: 90%; /* Adjust for smaller screens */
  }

  .values {
    flex-direction: column;
    align-items: center;
  }

  .value-item {
    width: 100%;
    max-width: 300px;
  }

  .reasons {
    align-items: flex-start; /* Ensure reasons start aligned on mobile */
  }
  
  /* hero tweaks mobile */
  .hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .header-content h1 {
    font-size: 1.8rem;
  }

  .header-content p {
    font-size: 1rem;
  }

  .hero-bullets {
    font-size: 0.95rem;
  }

  .cta-button {
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
}


/* Kontakt-Layout (2 Spalten auf Desktop) */
.contact-layout {
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
  text-align: left;
}

/* Linke Seite */
.contact-info {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 1.5rem 1.5rem;
}

.contact-info p {
  margin: 0.4rem 0;
  font-size: 1rem;
  color: #2d3748;
  line-height: 1.5;
}

.contact-info .phone {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-info a {
  color: #38a169;
  text-decoration: none;
}
.contact-info a:hover {
  color: #2f855a;
}

.contact-info .note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #4a5568;
  font-style: italic;
}

/* Rechte Seite: Formular-Karte */
.contact-form-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 1.5rem 1.5rem 2rem 1.5rem;
}

.contact-form-wrapper h3 {
  margin-bottom: 1rem;
  color: #2d3748;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Formular Grid */
.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 1rem 1.5rem;
}

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

.form-group.full {
  grid-column: 1 / -1;
}

/* Labels + Inputs */
label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.3rem;
}

input,
select,
textarea {
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  color: #2d3748;
  background: #fdfdfd;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #38a169;
  border-color: #38a169;
  background: #fff;
}

/* Absenden-Button */
.send-button {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #2f855a, #38a169);
  color: #fff;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 10px 25px rgba(47,133,90,0.3);
  transition: all 0.2s ease;
  text-align: center;
}

.send-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #38a169, #48bb78);
  box-shadow: 0 15px 30px rgba(47,133,90,0.4);
}

/* Datenschutzhinweis */
.privacy-hint {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: #718096;
  line-height: 1.4;
  margin-top: 0.5rem;
}

.privacy-hint a {
  color: #38a169;
  text-decoration: none;
}
.privacy-hint a:hover {
  color: #2f855a;
}
