/* ===========================
   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; }

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

/* ===========================
   Navigation (fixed)
=========================== */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #333;
  padding: 0;
  display: flex; justify-content: center; align-items: center;
  height: 56px;
  border-bottom: 2px solid #222;
}

/* Höhe für Mobile kleiner */
@media (max-width: 768px) {
  .nav { height: 48px; }
}

/* Platz nach oben für fixierte Navbar */
body { padding-top: 56px; }
@media (max-width: 768px) {
  body { padding-top: 48px; }
}

.menu-toggle {
  position: absolute; left: -9999px;
}

.nav-list {
  list-style: none;
  display: flex; flex-direction: row;
  justify-content: center; align-items: center;
  height: 100%;
  margin: 0; padding: 0;
}

.nav-list li { margin: 0 12px; }

.nav-list a {
  color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 500;
  padding: 10px 12px;
  display: flex; align-items: center; height: 100%;
  transition: color var(--transition-duration) ease-in-out,
              background-color var(--transition-duration) ease-in-out;
}

.nav-list a:hover {
  color: var(--link-hover-color);
  background-color: rgba(255,255,255,0.05);
  border-radius: 4px;
}

/* ===========================
   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 img {
  position: absolute; top: 50px; left: 0;
  width: 150px; height: 150px; object-fit: cover;
  z-index: 10;
}

.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-Button allgemein */
.cta-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--cta-bg-color);
  color: #fff;
  font-size: 1.1em;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  transition: background-color var(--transition-duration) ease,
              transform var(--transition-duration) ease,
              box-shadow var(--transition-duration) ease;
}
.cta-button:hover {
  background-color: var(--cta-hover-color);
  transform: scale(1.05);
  box-shadow: 0 4px 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; }
}

/* ===========================
   Ü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; }
}

