/* Allgemeine Einstellungen */
:root {
  --primary-color: #ff6600;
  --secondary-color: #333;
  --background-color: #f5f5f5;
  --black-color:#0a0a0a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--secondary-color);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-navigation ul li {
  margin: 0 20px;
}

.main-navigation ul li a {
  text-decoration: none;
  color: green;
  font-weight: bold;
}

/* Hero-Bereich */
#hero {
  background: url('images/hintergrundGlaeser.webp') center/cover no-repeat;
  position: relative;
  min-height: 115vh; /* Extra hoch, damit das Bild weit runtergeht */
  /* Kein display: flex; damit mehrere Inhalte normal angeordnet werden können */
}

/* Parallax-Effekt via JavaScript, also KEIN background-attachment: fixed; */
#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  pointer-events: none;
}

.hero-content {
  position: relative; 
  z-index: 2; /* liegt über dem Overlay */
  text-align: center;
  color: #fff;
  padding-top: 300px; /* Platz nach oben wo Willkommentext beginnt */
}

.hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* Video-Hero korrekt positionieren */
.video-hero {
  position: relative;
  overflow: hidden;
  background: none !important;
  min-height: 70vh; /* oder 100vh, je nach Geschmack */
}

/* Das Video liegt vollflächig im Hintergrund */
.video-hero video#hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Der Text wird zentriert und liegt über dem Video */
.video-hero .hero-content {
  position: absolute;
  top: 15%;
  left: 50%;

  
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
   color: #0e911f;
  /* ggf. Padding nach oben anpassen */
  width: 100%;
 
  padding: 0 20px;
}

.video-hero .hero-content p {
  color: var(--black-color);
  font-size: 1.28em;   /* 1.25em ist ein guter Mittelwert */
  margin-bottom: 6px;  /* dichter zusammen */
  line-height: 1.28;   /* weniger Abstand zwischen den Zeilen */
}


.btn {
  display: inline-block; /* Damit transform auf Hover funktioniert */
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  transform: scale(1.05);
}

/* =======================
   PRODUKTENTWICKLUNG SLIDESHOW
   ======================= */

.produktentwicklung-hero {
  width: 100vw;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  background: #000;
}

.produktentwicklung-hero .slideshow-container {
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 540px; /* Passe an, je nach Wunsch */
  overflow: hidden;
}

.produktentwicklung-hero .mySlides {
  display: none;
  width: 100vw;
  height: 100%;
  position: absolute;
  left: 0; top: 0;
  justify-content: center;
  align-items: center;
}

.produktentwicklung-hero .mySlides.active {
  display: flex;
  animation: fade 1s;
}

.produktentwicklung-hero img {
  width: 100vw;
  height: 440px;
  object-fit: cover;
  filter: brightness(0.8);
}

.produktentwicklung-hero .slide-text {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
}

.produktentwicklung-hero .slide-text h2 {
  font-size: 2.6em;
  color: #18b418;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.produktentwicklung-hero .slide-text p {
  font-size: 1.3em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@keyframes fade {
  from { opacity: 0.6 }
  to { opacity: 1 }
}

/* Optional: Dots (Punkte) für Navigation */
.produktentwicklung-hero .slideshow-dots {
 position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;        /* <- DAS IST WICHTIG! */
  width: auto;
  display: block;     /* Sicherstellen, dass nie display: none */
}
.produktentwicklung-hero .slideshow-dots .dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
  transition: opacity 0.3s;
  cursor: pointer;
}
.produktentwicklung-hero .slideshow-dots .dot.active {
  background-color: #18b418;
  opacity: 1;
}



/* Karten-Bereich */
/* NEU: Hintergrundfarbe initial weiß und mit Transition für den Fading-Effekt */
#cards {
  position: relative;
  height: 36vh;
  margin-top: -36vh; /* zieht den Bereich nach oben, sodass er optisch überlappt */
  padding-top: 3vh;  /* gleicht den negativen Margin intern aus */
  z-index: 2; /* über dem Hero-Overlay */
  text-align: center;
  background-color: rgb(255, 255, 255); /* Anfangs weiß */
  transition: background-color 0.3s ease; /* sanfter Übergang beim Fading */
}

/* Intro-Text für die Karten */
.cards-intro {
  color: rgba(0, 0, 0, 1);; /* damit es über dem dunklen Overlay lesbar ist */
  margin-bottom: 40px;
  margin-top: 10px;
}

/* Karten-Inhalte */
.card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  background-color: transparent;
  padding: 0 0 60px; /* unten ein wenig Abstand */
}

.card {
  background-color: rgba(0, 128, 0, 0.8); /* Grün mit leichter Transparenz */
  color: #fff;
  width: 300px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  margin-bottom: 55px;
}

.card h3 {
  margin-top: 25;
  margin-bottom: 15px;
}

.card p {
  margin-bottom: 20px;
}

.card .btn {
  background-color: rgba(255, 128, 9, 0.999);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

/* Responsives Verhalten */
@media (max-width: 768px) {
  #cards {
    margin-top: -30vh;
    padding-top: 30vh;
  }
  .card-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

/* Unser Partner Logo Startseite */
#partner-logo {
  padding: 40px 0;
  text-align: center;
  background-color: #fff; /* Anpassbar */
}

#partner-logo .partner-logo {
  max-width: 200px; /* Größe anpassen */
  transition: transform 0.3s ease;
}

#partner-logo .partner-logo:hover {
  transform: scale(1.05);
}

/* Content Sections */
.content-section {
  padding: 60px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* Überschrift "Unser Team" zentrieren */
#team .container > h1 {
  text-align: center;
  margin: 0 auto 40px;  /* optional: Abstand unten */
}

/* Beispiel für Team-Bereich (unserTeam.php) */
.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.team-member {
  background-color: #f5f5f5;
  padding: 20px;
  width: 250px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.team-member img {
  width: 100%;
  height: auto;
  border-radius: 50%;  /* Optional: rundes Bild */
  margin-bottom: 15px;
}

.team-member h2 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.team-member p {
  color: var(--secondary-color);
}

/* Überschrift "Beratend für uns tätig:" zentrieren */
.consultants > h2 {
  text-align: center;
  margin: 60px auto 20px; /* Abstand oben/unten nach Bedarf */
}

.consultants h2 {
  margin-bottom: 20px;
}

.consultant-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: stretch;   /* sorgt dafür, dass ALLE Karten gleich hoch sind! */
}

.consultant-member {
  background-color: #f5f5f5;
  padding: 15px;
  width: 200px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.consultant-member img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  margin-bottom: 10px;
}

.consultant-member h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.consultant-member p {
  color: var(--secondary-color);
}

/* Nutze dieselben Styles wie .consultant-member */
.consultant-member.career-cta {
  background-color: #f5f5f5;
  padding: 20px;
  width: 200px;               /* gleiche Breite wie Berater-Kachel */
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Etwas mehr Platz oben und unten */
.consultant-member.career-cta p {
  margin: 0 0 20px;
  margin-top: 30px;
  color: var(--secondary-color);
  font-size: 1em;
  line-height: 1.4;
}

/* Button zentrieren und Größe anpassen */
.consultant-member.career-cta .btn {
  width: auto;
  padding: 12px 30px;
  font-size: 1em;
}

/* Responsives Layout für kleinere Bildschirme */
@media (max-width: 768px) {
  .team-members, .consultant-members {
    flex-direction: column;
    align-items: center;
  }
}

.career-cta {
  margin-top: 40px;
  text-align: center;
}

.career-cta p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.career-cta .btn {
  background-color: rgba(255, 139, 31, 0.973);
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

/* Kontaktbereich */
.contact-container {
  max-width: 800px; /* Breite anpassen, falls gewünscht */
  margin: 0 auto;
  text-align: center;
}

.contact-container .intro-text {
  margin-bottom: 30px;
  font-size: 1.1em;
}

/* Erfolg- und Fehlermeldungen */
.success-message {
  color: green;
  margin-bottom: 15px;
}
.error-message {
  color: red;
  margin-bottom: 15px;
}

/* Formular */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  margin: 0 auto;
}

/* Form-Reihen und Gruppen */
.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.form-group {
  flex: 1; /* Felder werden gleich breit */
  display: flex;
  flex-direction: column;
}

/* Input- und Textarea-Felder mit grüner Umrandung */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  border: 2px solid green;
  border-radius: 5px;
  padding: 10px;
  font-size: 1em;
  outline: none;
}

/* Labels */
#contact-form label {
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--secondary-color);
}

/* Button-Style anpassen */
#contact-form .btn {
  align-self: flex-start; /* Button links ausrichten; alternativ: center, wenn gewünscht */
  background-color: var(--primary-color); /* Orange */
  color: #fff;
  padding: 12px 30px;
  font-size: 1em;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Karriere-CTA Bereich */
.career-cta {
  text-align: center;
  background-color: #fff;
}

.career-cta p {
  margin-bottom: 20px;
  font-size: 1.2em;
}

.career-cta .btn {
  background-color: var(--primary-color); /* Orange */
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
  transition: transform 0.3s ease;
}

/* Hover-Effekt für alle Buttons */
.btn:hover {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

/* Footer */
footer {
  background-color: green;
  color: #fff;
  padding: 20px 0;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

footer p {
  margin: 12px 0;
}

footer .contact-info p {
  margin: 5px 0;
}

/* Slideshow-Bereich */
.slideshow-section {
  background-color: #f5f5f5; /* optionaler Hintergrund */
  padding: 40px 0;
  text-align: center;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

/* Ein einzelner Slide */
.mySlides {
  display: none; /* Nur der aktive Slide wird angezeigt */
  position: relative;
}

.mySlides img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Übergangseffekt (fade) */
.fade {
  animation-name: fade;
  animation-duration: 1s;
}

/* Text über dem Bild */
.slide-text {
  position: absolute;
  bottom: 20px;
  left: 30px;
  /*background-color: rgba(0,0,0,0.5);*/
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
}

/* Aktivieren des ersten Slides */
.mySlides.active {
  display: block;
}

/* Keyframes für den Fade-Effekt */
@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Info-Text-Bereich */
.info-section p {
  margin-bottom: 20px;
  line-height: 1.5;
}

/* CTA-Bereich */
.cta-section {
  background-color: #fff;
  text-align: center;
  padding: 40px 0;
}

.cta-section h3 {
  margin-bottom: 10px;
}

.cta-section p {
  margin-bottom: 20px;
}

.cta-section .btn {
  background-color: var(--primary-color); /* Orange */
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
}

/* Responsive */
@media (max-width: 768px) {
  .slide-text {
    position: static;
    margin-top: 10px;
    display: inline-block;
    background-color: transparent;
  }
  .slide-text h3 {
    margin-bottom: 5px;
  }
}

/* Info-Text mit Grafik (links) */
.info-flex {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.info-image img {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px; /* Optional: abgerundete Ecken */
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.info-text {
  flex: 1; /* Text nimmt den übrigen Platz ein */
  display: flex;
  align-items: center;
}

/* Responsive: Bild über dem Text bei kleiner Breite */
@media (max-width: 850px) {
  .info-flex {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .info-image img {
    max-width: 85vw;
  }
  .info-text {
    width: 100%;
  }
}

.aktuelles-section {
  background: #fcfff6;               /* ganz helles Grün/Weiß */
  border-left: 6px solid #18b418;    /* auffälliger Farbstreifen links */
  box-shadow: 0 4px 18px rgba(22, 110, 27, 0.08);
  margin: 48px auto 32px auto;
  border-radius: 14px;
  max-width: 1100px;
  padding: 18px 28px 18px 22px;
  margin-bottom: 50px; 
}

.aktuelles-flex {
  display: flex;
  align-items: center;
  gap: 38px;
}

.aktuelles-text {
  flex: 1;
  font-size: 1.14em;
}
.aktuelles-text h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #18b418;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aktuelles-text .aktuelles-icon {
  font-size: 1.35em;
  margin-right: 2px;
}

.aktuelles-text a {
  color: #18b418;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}
.aktuelles-text a:hover {
  color: #ff6600;
}

.aktuelles-image img {
  max-width: 220px;
  width: 100%;
  border-radius: 9px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  display: block;
}


/* Mobile/Tablet */
@media (max-width: 850px) {
  .aktuelles-flex {
    flex-direction: column-reverse;
    gap: 18px;
    align-items: center;
    text-align: center;
  }
  .aktuelles-section {
    padding: 12px 5vw 16px 5vw;
    border-radius: 9px;
    margin-left: 0; margin-right: 0;
    max-width: 98vw;
  }
  .aktuelles-image img {
    max-width: 92vw;
    margin: 0 auto;
  }
}


/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }
  
  .main-navigation ul {
    flex-direction: column;
    margin-top: 10px;
  }
  
  .team-members {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .main-navigation ul li {
    margin: 10px 0;
  }
}
