/* BASE STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, .main-nav a, .btn {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 600;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
a { color: #6fcf97; text-decoration: none; transition: color 0.3s; }
a:hover { color: #4caf50; }

/*  HEADER  */
.site-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

/* Logo */
.logo img {
  height: 45px;
  width: auto;
}

/* Hauptnavigation (Desktop) */
.main-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #6fcf97;
}

/* Mobile Navigation Toggle (Hamburger) */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation Hamburger → X */
.mobile-nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;        
  top: 70px;              
  left: 0;
  width: 100%;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1002;          
}

.mobile-nav.active {
  display: block;
  animation: fadeDown 0.3s ease forwards;
}

/* Animation fürs Einblenden */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  position: relative;
  margin: 8px 0;
  border: none;
}

.mobile-nav a {
  display: block;
  padding: 14px 16px 14px 20px;
  position: relative;
  color: #52a445;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: #52a445;
  transition: width 0.3s ease;
}

.mobile-nav a:hover::before {
  width: 4px;
}

.mobile-nav a:hover {
  color: #52a445;
}

/* RESPONSIVE LOGIK */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}

/* HERO / SLIDER */
.hero { margin-top: 80px; position: relative; overflow: hidden; }
.hero-slider { position: relative; height: 80vh; }
.slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.hero-content {
  position: absolute; bottom: 20%; left: 10%;
  color: #fff;
  max-width: 500px;
}
.hero-content h1 {
  font-size: 2.5rem; margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
.hero-content p { font-size: 1.2rem; margin-bottom: 20px; }
.btn {
  display: inline-block;
  background: #52a445;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s;
}
.btn:hover { background: #57b27b; }
.btn-light { background: #fff; color: #333; }

/* CONTENT SECTIONS */
.content-section { padding: 80px 0; text-align: center; }
.light-bg { background: #f9f9f9; }
.content-section h2 { margin-bottom: 30px; color: #333; font-size: 2rem; }

/* FOOTER */
.site-footer {
  background: #2f2f2f;
  color: #fff;
}

/* Oberer Footerbereich */
.footer-container {
  padding: 56px 0 38px; 
}

.footer-brand {
  max-width: 980px; 
}

.footer-logo img {
  height: 46px;         
  width: auto;
  display: block;
}

.footer-tagline {
  margin: 16px 0 12px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
}

/* Linkzeile */
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #52a445;
  text-decoration: none;
  font-weight: 500;
  transition: opacity .2s ease, color .2s ease;
}

.footer-nav a:hover {
  color: #4caf50;
  opacity: 1;
}

/* Untere Abschlusszeile */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0 24px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container { padding: 44px 0 32px; }
  .footer-logo img { height: 42px; }
  .footer-tagline { font-size: 1rem; }
  .footer-nav { gap: 16px; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
}

/* COMPANY SECTION */
.company-section {
  background: #f9f9f9;
  text-align: left;
  overflow: hidden;
}

.company-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}

.company-text h2 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 20px;
  text-align: left;
}

.company-text p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
}

.company-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  object-fit: cover;
}

@media (max-width: 992px) {
  .company-text {
    text-align: left !important;
    padding: 0 20px !important;
  }
  .company-text h2 {
    text-align: left !important;
  }
}

/* Highlights */
.company-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 25px;
}

.highlight {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 25px 20px;
  flex: 1 1 calc(33% - 20px);
  transition: transform 0.3s;
}

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

/* Icon */
.highlight img {
  width: 25px;
  height: 25px;
  margin-right: 15px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(36%) sepia(53%) saturate(467%) hue-rotate(79deg) brightness(93%) contrast(90%);
}

.highlight-text h4 {
  color: #52a445;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.highlight-text p {
  font-size: 0.95rem;
  color: #555;
}

/* Animations */
[data-animate] { opacity: 0; transform: translateY(30px); transition: all 1s ease-out; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* Responsive Design */
@media (max-width: 992px) {
  .company-top {
    grid-template-columns: 1fr;
  }
  .company-image { order: -1; }
}

@media (max-width: 768px) {
  .company-highlights {
    flex-direction: column;
  }
  .highlight {
    flex: 1 1 100%;
  }
}

/* LEISTUNGEN SECTION */
.leistungen-section {
  background: #fff;
  text-align: center;
  padding: 80px 0;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 50px;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Grid-Layout */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* Karte */
.service-card {
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  position: relative;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: scale(1.02);
}

/* Bildfläche */
.service-image {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.6s ease, filter 0.4s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.service-card:hover .service-image {
  transform: scale(1.08);
  filter: brightness(0.9);
}

/* Overlay */
.service-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 25px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.75) 100%);
  text-align: left;
  border-radius: 0 0 15px 15px;
  box-shadow: inset 0 -10px 30px rgba(0,0,0,0.3);
}

.service-overlay h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.service-overlay p {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

/* Responsives Verhalten */
@media (max-width: 992px) {
  .service-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .service-image {
    height: 220px;
  }
  .service-overlay {
    padding: 20px 15px;
  }
  .service-overlay h3 {
    font-size: 1.1rem;
  }
  .service-overlay p {
    font-size: 0.9rem;
  }
}

/* STELLENANGEBOTE SECTION */
.jobs-section {
  background: linear-gradient(135deg, #f3f8f5 0%, #e9f3ef 100%);
  text-align: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Überschrift & Intro */
.jobs-section h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 10px;
}

.jobs-section .section-intro {
  font-size: 1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* Grid-Layout für zwei Stellen */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  justify-items: center;
  margin-bottom: 30px;
}

/* Einzelne Job-Karten */
.job-card {
  background: #fff;
  padding: 25px 25px 20px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 480px;
  text-align: left;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.job-card h3 {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 8px;
}

.job-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Link "Mehr erfahren" */
.job-link {
  color: #52a445;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.job-link:hover {
  color: #4caf50;
}

/* Button unten */
.jobs-btn {
  display: inline-block;
  background: #52a445;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 25px;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.jobs-btn:hover {
  background: #57b27b;
}

/* Responsives Verhalten */
@media (max-width: 992px) {
  .jobs-section {
    padding: 50px 0;
  }
  .job-card {
    padding: 22px 20px;
  }
}

@media (max-width: 768px) {
  .jobs-section {
    padding: 45px 0;
  }
  .jobs-grid {
    gap: 20px;
  }
  .job-card {
    text-align: center;
  }
  .job-card p {
    font-size: 0.9rem;
  }
}

/* KONTAKT SECTION */
.contact-section {
  background: linear-gradient(135deg, #eaf7f0 0%, #ffffff 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-section h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 15px;
  font-weight: 700;
}

.contact-section p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Button */
.btn-contact {
  display: inline-block;
  background: #52a445;
  color: #fff;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(111, 207, 151, 0.3);
}

.btn-contact:hover {
  background: #57b27b;
  box-shadow: 0 6px 20px rgba(87, 178, 123, 0.35);
  transform: translateY(-2px);
}

/* Responsives Verhalten */
@media (max-width: 992px) {
  .contact-section {
    padding: 70px 0;
  }
  .contact-section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }
  .contact-section h2 {
    font-size: 1.6rem;
  }
  .contact-section p {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .btn-contact {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}

/* RESPONSIVE DESIGN */

/* Tablet */
@media (max-width: 992px) {
  /* Header & Navigation */
  .main-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  
  /* Fix für mobile Navigation */
  .mobile-nav.active {
    display: block;
    animation: fadeDown 0.3s ease forwards;
  }

  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Hero Section */
  .hero-slider { height: 70vh; }
  .hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 85%;
  }
  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  /* Unternehmen */
  .company-section {
    padding: 60px 0;
  }
  .company-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .company-image { order: 1; }
  .company-text { order: 0; text-align: center; }
  .company-text h2 { font-size: 1.8rem; text-align: center; }
  .company-text p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .company-highlights {
    flex-direction: column;
    align-items: center;
  }
  .highlight {
    max-width: 90%;
  }

  /* Leistungen */
  .leistungen-section {
    padding: 60px 0;
  }
  .service-grid {
    gap: 20px;
  }
  .service-image {
    height: 240px;
  }

  /* Footer */
  .footer-container {
    padding: 50px 0 35px;
  }
  .footer-tagline {
    font-size: 1rem;
  }
}

/* Smartphones (<= 600px) */
@media (max-width: 600px) {
  /* Generelle Textgrößen */
  h1 { font-size: 1.6rem !important; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.1rem !important; }
  p, li { font-size: 0.95rem; }

  /* Hero Slider Text */
  .hero-slider { height: 60vh; }
  .hero-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    text-align: left;
    padding: 0 10px;
    max-width: 90%;
  }
  .hero-content h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  .btn, .btn-light {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  /* Unternehmen */
  .company-text p {
    font-size: 0.95rem;
  }
  .company-highlights {
    gap: 18px;
  }

  /* Leistungen */
  .service-image {
    height: 200px;
  }
  .service-overlay {
    padding: 15px;
  }
  .service-overlay h3 {
    font-size: 1rem;
  }
  .service-overlay p {
    font-size: 0.85rem;
  }

  /* Stellenangebote & Kontakt */
  .jobs-section h2, .contact-section h2 {
    font-size: 1.4rem;
  }
  .jobs-section p, .contact-section p {
    font-size: 0.95rem;
  }

  /* Footer */
  .footer-logo img {
    height: 40px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .footer-bottom {
    padding: 16px 0 24px;
    font-size: 0.85rem;
  }
}