/* =========================== Variablen & Resets =========================== */
:root {
  --primary-bg-color: #e0e0e0;
  --primary-text-color: #333333;
  --link-hover-color: #27ae60;
  --box-shadow: 0 4px 10px rgba(50, 50, 50, 0.3);
  --transition-duration: 0.3s; /* Ergänzt */
  --secondary-bg-color: #f7f7f7;
  --hover-transition: all 0.2s ease;
  --focus-color: #2ecc71;
  /* CTA */
  --cta-bg-color: #27ae60;
  --cta-hover-color: #2c974b;


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-text-color);
  background-color: var(--primary-bg-color);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
}

/* ❗ DEIN page-frame MUSS HIER stehen */
.page-frame {
  width: 100%;
  max-width: 1900px;   /* gleiche Breite wie deine Navbar */
  margin: 0 auto;      /* zentriert ALLES */
  padding: 0;
}

/* Layout-Helfer */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}


/* =========================================================
   NAVIGATION – FIXED + SAUBER BEGRENZT AUF DEINEN WEISSEN RAND
/* =========================================================
   NAVIGATION – FIXED + SAUBER BEGRENZT AUF DEINEN WEISSEN RAND
========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  /* ✔ exakt gleiche Breite wie page-frame */
  max-width: 1900px;
  width: 100%;

  /* ❗ KORREKTUR: KEIN margin-left mehr */
  margin: 0 auto;

  height: 56px;
  background-color: #333;
  border-bottom: none;   /* kein Balken mehr */


  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0;
  z-index: 1000;
}

/* ---------- MOBIL ---------- */
@media (max-width: 768px) {
  .nav {
    height: 48px;
    padding: 0 15px;
    max-width: 100%; /* Mobile nutzt ganzen Bildschirmrahmen */
  }
}


/* ---------- Abstand zum Inhalt ---------- */
body {
  padding-top: 56px;
}
@media (max-width: 768px) {
  body {
    padding-top: 48px;
  }
}

/* =========================================================
   DROPDOWN / TOGGLE MENÜ
========================================================= */

/* Toggle ausblenden */
.menu-toggle {
  position: absolute;
  left: -9999px;
}

/* Menü-Container → gleich breit wie Seite */
.menu-container {
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 2001;
}

/* Standard (Desktop) Nav-Liste */
.nav-list {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
}

/* Links */
.nav-list a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 14px;
  background-color: #333;
  border-radius: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-list a:hover {
  background-color: #444;
  color: var(--link-hover-color);
}

/* =========================================================
   DROPDOWN (wenn Menü geklickt wird)
========================================================= */

.nav-list {
  position: absolute;
  top: 56px;
  left: 0;                 /* ← FIX 1 */
  transform: none;         /* ← FIX 2 */
  width: 100%;
  max-width: 1900px;

  display: none;
  flex-direction: column;

  background-color: #333;
  padding: 0;              /* ← FIX 3: entfernt 1mm Balken */
  border-radius: 0;
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;      /* nicht mehr im Frame gefangen */
    top: 48px;
    left: 0;
    transform: none;      
    width: 100vw;         
    max-width: 100vw;     
    border-radius: 0;
    margin-top: -5px;     /* 👈 1px nach oben, mm verschwindet */
  }
}




/* Checkbox aktiviert Dropdown */
.menu-toggle:checked ~ .nav-list {
  display: flex;
}





/* ===========================
   Hero
=========================== */
/* WICHTIG: Diese CSS-Datei liegt in /assets/.
   Bilder liegen in /assets/images/ → relativer Pfad ist "images/…" */
.hero {
  background: url("images/hero-technology.jpg") center/cover no-repeat;
  background-color: #222;
  color: #ffffff;
  padding: 0;
  position: relative;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-logo {
  position: absolute;
  top: 0px;         /* exakt unter der Navbar */
  left: 0px;        /* schöner Abstand vom Rand */
  z-index: 1200;     /* über hero-bild */
}

.hero-logo img {
  width: auto;
  height: 140px;      /* perfekter Logo-Size */
}
@media (max-width: 768px) {
  .hero-logo {
    top: 0px;      /* mobile navbar height */
    left: 0px;
  }

  .hero-logo img {
    height: 50px;
  }
}


.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  margin-top: 5vh;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
  .hero { height: 60vh; }
  .hero-content h1 { margin-top: 0; font-size: 1.6rem; }
  .hero-logo img { width: 110px; height: 110px; top: 12px; }
}

/* CTA – modern, clean, smooth */
.cta-button {
  display: inline-block;
  padding: 14px 32px;

  background: linear-gradient(135deg, #27ae60, #1f8f4d);
  color: #fff;

  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;

  text-decoration: none;
  margin-top: 20px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.cta-button:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}


/* ===========================
   Services – polished
=========================== */
.services-section {
  padding: 70px 20px;
  background: linear-gradient(135deg, #6e7f80, #b8d3d1);
  text-align: center;
  color: #fff;
}

.services-section h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fdfdfd;
}

.services-intro {
  font-size: 1.1rem;
  max-width: 740px;
  margin: 0 auto 50px;
  line-height: 1.6;
  color: #e9ecef;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 20px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-content {
  padding: 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.service-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 22px;
  line-height: 1.5;
}

.service-content .cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  background: #27ae60;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-content .cta:hover {
  background: #1f8c4c;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .services-section { padding: 50px 12px; }
  .services-section h2 { font-size: 2rem; }
  .services-intro { font-size: 1rem; margin-bottom: 32px; }
  .service-card img { height: 180px; }
  .service-content h3 { font-size: 1.3rem; }
}
/* ================================
/* ============================
   REFERENCES SECTION
============================ */
.references-section {
  padding: 60px 0 80px;
  text-align: center;
}

.references-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.ref-sub {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
}

/* Carousel Wrapper */
.reviews-carousel {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  height: 200px; /* feste Höhe für Übergänge */
  overflow: hidden;
}

/* Einzelne Karten */
.review-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;

  padding: 20px 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Sterne */
.stars {
  color: #f1c40f;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.quote {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #222;
  margin-bottom: 10px;
}

.customer-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
  .reviews-carousel {
    height: 240px;
  }

  .review-card {
    padding: 15px 18px;
  }

  .quote {
    font-size: 0.95rem;
  }
}


/* ===========================
   ÜBER UNS – Card-Design
=========================== */
#about {
  position: relative;
  max-width: 1000px;
  margin: clamp(32px, 6vw, 72px) auto;
  padding: clamp(24px, 4vw, 48px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

/* Akzentleiste oben */
#about::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  background: linear-gradient(90deg, var(--cta-bg-color), #4a6572);
}

/* Titel */
#about h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--primary-text-color);
  letter-spacing: .5px;
  margin-bottom: 14px;
}

/* feine Unterstreichung */
#about h2::after {
  content: "";
  display: block;
  width: 72px; height: 3px;
  margin: 10px auto 0;
  background: var(--cta-bg-color);
  border-radius: 2px;
}

/* Textkörper */
#about p {
  max-width: 70ch;
  margin: 12px auto 0;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.75;
  color: #555;
}

/* erster Absatz als Teaser etwas kräftiger */
#about p:first-of-type {
  font-weight: 600;
  color: #444;
}

@media (max-width: 480px) {
  #about {
    padding: 20px 16px;
    margin: 24px 12px;
  }
}

/* ===========================
   Regional (Video)
=========================== */
#regional {
  position: relative; width: 100%; height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}

.hero-video { position: absolute; inset: 0; z-index: 1; }
.hero-video video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  pointer-events: none;
}

.regional-content {
  position: relative; z-index: 3; color: #f0f0f0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 20px; padding: 20px;
}

.regional-content .left-text,
.regional-content .right-text { max-width: 600px; margin: 0 auto; }

.regional-content .left-text h2,
.regional-content .right-text h3 {
  font-size: 2.5rem; font-weight: bold; margin-bottom: 10px; color: #f0f0f0;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

.regional-content .left-text p,
.regional-content .right-text p {
  font-size: 1.2rem; line-height: 1.5; margin-bottom: 20px; color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.regional-content .cta-button {
  display: inline-block; padding: 12px 25px;
  background-color: #2f4f2f; color: #fff; border-radius: 30px; text-decoration: none;
  font-weight: bold; font-size: 1.2rem; transition: background-color 0.3s, transform 0.2s;
}
.regional-content .cta-button:hover { background-color: #1f3a1f; transform: scale(1.05); }

@media (max-width: 768px) {
  #regional { height: auto; padding: 20px 0; }
  .regional-content .left-text h2,
  .regional-content .right-text h3 { font-size: 1.8rem; }
  .regional-content .left-text p,
  .regional-content .right-text p { font-size: 1rem; }
  .regional-content .cta-button { font-size: 1rem; padding: 10px 20px; }
}

/* ===========================
   Referenzen (Carousel)
=========================== */
#references {
  background-color: #f8f8f8;
  padding: 50px 16px;   /* etwas enger */
  text-align: center;
  color: #333;
}

#references h2 {
  font-size: 2.4rem;     /* kleiner als 2.8rem */
  font-weight: 700;
  margin-bottom: 16px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#references p {
  font-size: 1.05rem;    /* schlanker */
  margin-bottom: 28px;
  color: #666;
}

.reviews-carousel {
  position: relative;
  width: 100%;
  max-width: 700px;      /* enger zentriert */
  min-height: 240px;
  margin: 0 auto;
  overflow: hidden;
  padding: 12px;
}

.review-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;          /* weniger innenabstand */
  box-sizing: border-box;
}

.quote {
  font-size: 0.95rem;
  font-style: italic;
  color: #333;
  margin: 0 auto 8px;
  max-width: 640px;       /* engerer Textblock */
  line-height: 1.5;
}

.customer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin: 0;
  max-width: 640px;
  text-align: right;
}

@keyframes fade {
  0% {opacity:0;}
  8% {opacity:1;}
  25% {opacity:1;}
  33% {opacity:0;}
  100% {opacity:0;}
}
.review-item:nth-child(1){ animation: fade 12s infinite; }
.review-item:nth-child(2){ animation: fade 12s infinite; animation-delay: 3s; }
.review-item:nth-child(3){ animation: fade 12s infinite; animation-delay: 6s; }
.review-item:nth-child(4){ animation: fade 12s infinite; animation-delay: 9s; }

@media (max-width: 768px) {
  #references { padding: 40px 12px; }
  .reviews-carousel { max-width: 100%; min-height: 280px; }
  .quote { font-size: 0.95rem; padding: 0; }
  .customer-name { font-size: 0.85rem; }
}

/* ===========================
   FAQ
=========================== */
.faq-section {
  padding: 40px 20px; background-color: var(--secondary-bg-color); text-align: center;
}
.faq-section h2 { font-size: 2.5rem; font-weight: 700; color: var(--primary-text-color); margin-bottom: 20px; }

.faq-item {
  margin: 20px auto; max-width: 800px; padding: 20px;
  background-color: #fff; border-radius: 8px; box-shadow: var(--box-shadow); text-align: left;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover { background-color: #f9f9f9; box-shadow: 0 6px 12px rgba(0,0,0,0.1); }

.faq-item h3 {
  font-size: 1.5rem; font-weight: 700; color: var(--primary-text-color);
  cursor: pointer; transition: color 0.3s ease;
}
.faq-item h3:hover { color: var(--link-hover-color); }

.faq-answer {
  font-size: 1.1rem; color: #555; line-height: 1.6; margin-top: 10px;
  display: none; opacity: 0; transition: opacity 0.3s ease;
}
.faq-checkbox:checked + label + .faq-answer { display: block; opacity: 1; }

@media (max-width: 768px) {
  .faq-section h2 { font-size: 2rem; }
  .faq-item { max-width: 100%; }
  .faq-item h3 { font-size: 1.3rem; }
  .faq-item p { font-size: 1rem; }
}

/* ===========================
   Footer
=========================== */
footer {
  background-color: #f0f0f0;
  padding: 40px 20px;
  color: #333;
  text-align: center;
  font-size: 1.1em;
  border-top: 2px solid #ccc;
  margin-top: 40px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

footer .social-media { margin-bottom: 20px; }
footer .social-media a {
  color: #333;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.5em;
  transition: color 0.3s ease, transform 0.2s ease;
}
footer .social-media a:hover {
  color: var(--link-hover-color);
  transform: scale(1.1);
}

footer p { margin: 10px 0; }

footer .footer-links { margin-top: 20px; }
footer .footer-links a.cta-btn {
  background-color: #e0e0e0;
  color: #000;
  padding: 12px 24px;
  margin: 10px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
}
footer .footer-links a.cta-btn:hover {
  background-color: #d5d5d5;
  transform: scale(1.05);
}
footer .footer-links a.cta-btn:focus {
  outline: none;
  border: 2px solid var(--focus-color);
}

@media (max-width: 768px) {
  footer { font-size: 1rem; padding: 20px; }
  footer .social-media a { margin: 0 10px; font-size: 1.3em; }
  footer .footer-links a.cta-btn { font-size: 1rem; padding: 10px 20px; }
}

