/* ==========================================================================
   1. LOKALE SCHRIFTARTEN (Poppins)
   ========================================================================== */
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. DESIGN TOKENS & VARIABLEN
   ========================================================================== */
:root {
  /* Markenfarben */
  --primary-color: #1b761b;
  --primary-hover: #145914;
  --text-dark: #222222;
  --text-muted: #666666;
  --text-light: #ffffff;
  --bg-light: #f2f7f2;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;

  /* Typografie */
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Effekte */
  --max-width: 1140px;
  --radius: 10px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.10);

  /* Animationen */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
}

/* ==========================================================================
   3. GLOBAL RESET & BASIS-STYLES
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

.container {
  width: min(90%, var(--max-width));
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.hero-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-light);
  background-color: transparent;
  border: 1px solid var(--text-light);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.hero-btn:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--text-light);
}

.red-btn {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.red-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* ==========================================================================
   5. NAVIGATION & HEADER (FLEXIBEL & KOLLISIONSFREI)
   ========================================================================== */
.header {
  min-height: 85vh;
  min-height: 85dvh;
  width: 100%;
  background-image: linear-gradient(rgba(10, 25, 10, 0.45), rgba(10, 25, 10, 0.60)), url(images/banner_fr.webp);
  background-position: center;
  background-size: cover;
  position: relative;
  display: flex;
  flex-direction: column;
}

.sub-header {
  min-height: 220px;
  height: 30vh;
  width: 100%;
  background-image: linear-gradient(rgba(10, 25, 10, 0.45), rgba(10, 25, 10, 0.60)), url(images/banner_fr.webp);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
}

.sub-header h1 {
  margin: auto 0;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

nav {
  display: flex;
  padding: 1.2rem 5%;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 10;
}

.site-logo {
  width: auto;
  max-height: 75px;
  object-fit: contain;
  transition: var(--transition-normal);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.nav-links {
  flex: 1;
  text-align: right;
}

.nav-links ul {
  white-space: nowrap;
}

.nav-links ul li {
  display: inline-block;
  padding: 8px 14px;
  position: relative;
}

.nav-links ul li a {
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-links ul li::after {
  content: '';
  width: 0%;
  height: 3px;
  background: var(--primary-color);
  display: block;
  margin: auto;
  transition: 0.3s ease;
}

.nav-links ul li:hover::after {
  width: 100%;
}

nav .fa {
  display: none;
}

.text-box {
  width: 90%;
  max-width: 900px;
  color: var(--text-light);
  margin: auto;
  padding: 40px 0;
  text-align: center;
}

.hero-subtitle {
  display: block;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.text-box h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  color: var(--text-light);
  margin: 12px auto 28px auto;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  line-height: 1.55;
  max-width: 800px;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   6. SEKTIONEN & ALLGEMEINES LAYOUT
   ========================================================================== */
.section {
  padding: 60px 0;
}

.page-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--primary-color);
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 35px;
  color: var(--text-muted);
}

.course, .cta {
  width: min(88%, var(--max-width));
  margin: 0 auto;
  padding-top: 60px;
  padding-bottom: 40px;
  text-align: center;
}

.row {
  margin-top: 30px;
  display: flex;
  gap: 25px;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Call To Action */
.cta {
  margin: 60px auto;
  background-image: linear-gradient(rgba(27, 118, 27, 0.8), rgba(20, 89, 20, 0.8)), url(images/banner2_fr.webp);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius);
  text-align: center;
  padding: 50px 20px;
}

.cta h1 {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
}

/* ==========================================================================
   7. LEISTUNGS-KACHELN & SERVICE GRIDS
   ========================================================================== */
.services-grid-3, .services-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.service-img-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-light);
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
}

.service-card-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.service-list {
  margin-top: auto;
  padding-top: 0.5rem;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-list li i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.service-card-body .hero-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 20px;
  font-size: 0.8rem;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer {
  width: 100%;
  text-align: center;
  padding: 40px 0;
  background-color: #fcfcfc;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.footer h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.footer p {
  margin-bottom: 8px;
}

.footer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer a:hover {
  color: var(--primary-hover);
}

.fa-heart, .fa-heart-o {
  color: var(--primary-color);
  margin: 0 2px;
}

/* ==========================================================================
   9. KONTAKTSEITE & IMPRESSUM
   ========================================================================== */
.location {
  width: min(88%, var(--max-width));
  margin: 40px auto 0;
}

.location iframe {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-us {
  width: min(88%, var(--max-width));
  margin: 40px auto;
}

.contact-col {
  flex: 1 1 320px;
  margin-bottom: 30px;
}

.contact-col div {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.contact-col div .fa {
  font-size: 22px;
  color: var(--primary-color);
  margin-right: 18px;
  width: 25px;
  text-align: center;
}

.contact-col div p {
  padding: 0;
  margin: 0;
}

.contact-col div h5 {
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.contact-col input, .contact-col textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  outline: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  background-color: var(--bg-light);
  transition: var(--transition-fast);
}

.contact-col input:focus, .contact-col textarea:focus {
  border-color: var(--primary-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(27, 118, 27, 0.15);
}

.contact-col .hero-btn {
  cursor: pointer;
  border-width: 2px;
}

.success-message {
  margin-top: 20px;
  padding: 15px 20px;
  background-color: #f2f7f2;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
}

.success-message i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.h-captcha {
  margin-bottom: 20px;
}

.legal-content {
  width: min(88%, 900px);
  margin: 40px auto;
  color: var(--text-dark);
  line-height: 1.7;
}

.legal-box h2 {
  font-size: 1.7rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
}

.legal-box h3 {
  font-size: 1.15rem;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.legal-box p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.legal-box hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 25px 0;
}

.legal-box a {
  color: var(--primary-color);
  text-decoration: underline;
}

.legal-box a:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   10. KARRIERE / STELLENANGEBOTE
   ========================================================================== */
.career-section {
  background-color: var(--bg-white);
}

.job-listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin: 40px 0;
}

.job-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.job-card.highlight-job {
  border-top: 5px solid var(--primary-color);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.job-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1.3;
}

.job-badge {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.job-badge.trainee-badge {
  background-color: #e8f5e9;
  color: var(--primary-color);
}

.job-body {
  flex-grow: 1;
}

.job-body h4 {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--text-dark);
  font-weight: 600;
}

.job-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.job-body ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 5px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.job-body ul li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.job-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  text-align: right;
}

.job-footer .hero-btn {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.simple-apply {
  background-color: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 35px 20px;
  margin: 40px 0 20px;
  text-align: center;
}

.simple-apply h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.simple-apply p {
  max-width: 650px;
  margin: 0 auto 20px auto;
}

/* ==========================================================================
   11. COOKIE BANNER & MAP HINT
   ========================================================================== */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--bg-white);
  color: var(--text-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 20px 25px;
  z-index: 10000;
  max-width: 620px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease-in-out;
}

#cookie-banner p {
  font-size: 0.88rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

#cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

#cookie-accept, #cookie-decline {
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-main);
}

#cookie-accept {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 1px solid var(--primary-color);
}

#cookie-accept:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

#cookie-decline {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

#cookie-decline:hover {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.map-blocked-hint {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.map-blocked-hint p {
  max-width: 450px;
  margin: 0 auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   12. MEDIA QUERIES (GERÄTE-OPTIMIERUNGEN)
   ========================================================================== */

@media (min-width: 769px) and (max-height: 850px) {
  nav {
    padding: 0.8rem 5%;
  }

  .site-logo {
    max-height: 58px;
  }

  .text-box {
    padding: 15px 0;
  }

  .hero-lead {
    margin: 10px auto 20px auto;
  }

  .service-img-wrapper {
    height: 210px;
  }
}

@media (max-width: 1024px) {
  .services-grid-3, .services-grid-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .service-img-wrapper {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .header {
    min-height: 85vh;
    min-height: 85dvh;
    background-image: linear-gradient(rgba(10, 25, 10, 0.65), rgba(10, 25, 10, 0.82)), url(images/banner_fr_mobile.webp);
  }

  nav {
    padding: 1rem 5%;
  }

  .site-logo {
    max-height: 50px;
  }

  .text-box {
    width: 92%;
    padding: 20px 0;
  }

  .nav-links {
    position: fixed;
    background-color: var(--primary-color);
    height: 100vh;
    width: 230px;
    top: 0;
    right: -230px;
    text-align: left;
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
  }

  .nav-links ul {
    padding: 60px 20px;
  }

  .nav-links ul li {
    display: block;
    margin-bottom: 20px;
  }

  .nav-links ul li a {
    font-size: 1rem;
  }

  .nav-links .fa-times {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 22px;
    color: var(--text-light);
    cursor: pointer;
  }

  nav .fa-bars {
    display: block;
    color: var(--text-light);
    font-size: 22px;
    cursor: pointer;
  }


  .services-grid-3, .services-grid-6, .job-listings-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-img-wrapper {
    height: 200px;
  }

  .row {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .job-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-footer {
    text-align: center;
  }

  .job-footer .hero-btn {
    width: 100%;
  }

  #cookie-banner {
    padding: 16px;
  }

  #cookie-buttons {
    flex-direction: column;
  }

  #cookie-buttons button {
    width: 100%;
  }
}