* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #f8f8f8;
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 0 40px; /* oben/unten = 0, damit 100px vom Logo die volle Höhe ist */
  height: 100px; /* explizit gesetzt */
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
}

.logo-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
}

.logo {
  height: 100px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 45px;
  margin: 0;
  padding: 0;
}

nav li {
  white-space: nowrap; /* ❗ verhindert Zeilenumbruch */
}

nav a {
  text-decoration: none;
  color: hsl(197, 60%, 52%);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 18px;
  display: inline-block;
  white-space: nowrap; /* ❗ nochmal Sicherheit */
}

nav a:hover {
  color: hsl(197, 55%, 37%);
}
.social-links {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
  height: 100%;
}
.social-links a {
  color: hsl(197, 60%, 52%);
  font-size: 20px;
  transition: color 0.3s;
}
.social-links a:hover {
  color: hsl(197, 55%, 37%);
}
section {
  padding: 60px 40px;
}
#ueber-uns {
  width: 100%;
  padding: 0 200px; /* Mehr Abstand links und rechts */
  margin-top: -20px;
  scroll-margin-top: 500px; /* Platz über der Sektion, damit sie nicht vom Sticky-Header verdeckt wird */
}
#ueber-uns h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}
#ueber-uns .content {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  max-width: 100%;
  margin: 0 auto;
}
#ueber-uns .content p {
  margin-bottom: 20px;
}

/*
.carousel-container {
  position: relative;
  width: 100%;
  height: 600px; /* Oder je nach Bedarf 
  overflow: hidden;
  margin-top: -60px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}

.overlay-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.6);
}
.overlay-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #fff;
  text-align: left;
  font-size: 28px;
  font-weight: bold;
  z-index: 2;
  max-width: 40%;
}
*/

/* Vollbildbereich für das Video */

/* Das Video nimmt die gesamte Fläche ein */
#hero-video {
  position: relative;
  width: 100%;
  height: 90vh; /* gleiche Höhe */
  overflow: hidden;
  margin-bottom: 40px;
  margin-top: -40px;
}

#hero-video .video-container {
  position: relative;
  width: 100%;
  height: 100%; /* volle Höhe vom #hero-video */
  overflow: hidden;
}

#hero-video video.hero-video {
  width: 100%;
  height: 100%; /* Höhe vom Container übernehmen */
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.6);
  display: block; /* verhindert unerwünschte Abstände */
}

#hero-video .overlay-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  text-align: left;
  font-size: 28px;
  font-weight: bold;
  z-index: 2;
  max-width: 40%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}



/* Leistungen */
#leistungen {
  padding: 60px 40px;
  text-align: center;
  margin-top: -40px;
  scroll-margin-top: 100px;
}

#leistungen h2 {
  font-size: 28px;
  color: hsl(197, 60%, 52%);
  margin-bottom: 30px;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 100%;
  transition: opacity 0.5s ease-in-out;
}

.carousel-image {
  width: 45%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-text-container {
  width: 55%;
  text-align: left;
}

.carousel-text-container h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: hsl(197, 60%, 52%); /* gleiche Blauton wie im Menü */
}

.carousel-text {
  font-size: 18px;
  line-height: 1.6;
}



/* Fade-in und Fade-out für das Karussell */
.carousel-content {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
.carousel-content {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  /* Wichtig: automatische Höhe! */
  min-height: 300px;
}
.carousel-content.hidden {
  opacity: 0;
}

.carousel-text {
  font-size: 1.2rem;
}

.leistungs-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.leistungs-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tab {
  background-color: transparent;
  border: none;
  padding: 12px 25px;
  color: hsl(197, 60%, 52%);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #4a90e2;
  transition: width 0.3s ease;
}

.tab:hover::after {
  width: 100%; /* Unterstrichene Anzeige bei Hover */
}

.tab.active::after {
  width: 100%; /* Aktiver Tab hat einen vollständigen Unterstrich */
}



/*ZERTIFIKATE*/

#zertifikate {
  padding: 60px 40px;
  margin-top: -70px;
  scroll-margin-top: 200px;
}

#zertifikate h2 {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.zertifikate-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}

.zertifikate-container {
  flex: 1;
  min-width: 300px;
}

.zertifikate-container p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.zertifikate-container .vorteile {
  list-style: disc inside;
  margin-bottom: 20px;
}

.zertifikat-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: hsl(197, 60%, 52%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.zertifikat-button:hover {
  background-color: hsl(197, 55%, 37%);
}

.zertifikate-logo {
  flex-shrink: 0;
  min-width: 200px;
  max-width: 300px;
}

.zertifikate-logo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.vorteile li {
  margin-bottom: 15px; /* Abstand zwischen den Listenelementen */
}

/*Referenzen*/
#referenzen {
  padding: 60px 40px;
  margin-top: -60px;
  scroll-margin-top: 200px;
}

.referenzen-title {
  text-align: center;
  font-size: 28px;
  color: hsl(197, 60%, 52%);
  margin-bottom: 40px;
}

.referenzen-grid {
  display: flex;            /* Flexbox statt Grid */
  flex-wrap: nowrap;        /* niemals umbrechen */
  gap: 20px;                /* Abstand zwischen den Karten */
  overflow-x: auto;         /* horizontal scrollen erlauben */
  padding-bottom: 10px;     /* etwas Luft unten */
  scroll-snap-type: x mandatory; /* optional: Karten "einrasten" */
}

.projekt-karte {
  flex: 0 0 280px;          /* fixe Breite, wächst und schrumpft nicht */
  scroll-snap-align: center;/* optional: zentriert beim Scrollen */
}

.projekt-karte {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  flex: 0 0 auto; /* Verhindert, dass die Karten schrumpfen oder wachsen */
  width: 280px; /* Feste Breite der Karten */
  scroll-snap-align: center; /* Stellt sicher, dass jede Karte im Mittelpunkt landet, wenn sie gescrollt wird */
}

.projekt-karte:hover {
  transform: scale(1.02);
}

.projekt-karte img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.projekt-info {
  padding: 15px;
  text-align: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  max-width: 800px;
  text-align: center;
}

.modal-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  color: white;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 600px) {
  #close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2rem;
  }
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}


/* Karriere Sektion */
#karriere {
  padding: 50px 0;
  font-family: 'Roboto', sans-serif; /* Moderne Schriftart */
  margin-top: -60px;
  scroll-margin-top: 200px;
}

#karriere .content {
  text-align: center;
  max-width: 95%;
  margin: 0 auto;
 
}

#karriere .lead {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: hsl(197, 60%, 52%);
}

#karriere p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 80%;
  margin: 0 auto 20px auto;
}

#karriere h2 {
  font-size: 28px;
  color: hsl(197, 60%, 52%);
  margin-bottom: 30px; /* Optional, wie bei anderen Sektionen */
  text-align: center;  /* Falls gewünscht */
}


.jobs-grid {
  display: flex; /* Flexbox-Layout für horizontale Ausrichtung */
  gap: 20px; /* Abstand zwischen den Karten */
  max-width: 95%;
  margin: 40px auto;
  overflow-x: auto; /* Ermöglicht horizontales Scrollen */
  scroll-snap-type: x mandatory; /* Sorgt dafür, dass beim Scrollen eine Karte immer in den Sichtbereich kommt */
}

.job-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  flex: 0 0 23%; /* Jede Karte nimmt 23% der Breite ein */
  scroll-snap-align: start; /* Sorgt dafür, dass die Karten beim Scrollen ordentlich ausgerichtet sind */
  max-width: 23%; /* Maximal 4 Karten gleichzeitig */
  text-decoration: none; /* Entfernt die Unterstreichung */
  display: block; /* Macht die ganze Karte klickbar */
}

.job-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.job-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.job-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.job-card .badge {
  display: inline-block;
  background-color: hsl(197, 60%, 52%);
  color: #fff;
  font-weight: bold;
  padding: 5px 15px;
  border-radius: 25px;
  margin-top: 10px;
}

.job-card a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: hsl(197, 60%, 52%);
  color: #fff;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}

.job-card a:hover {
  background-color: hsl(197, 60%, 52%);
}

/*Kontakt*/

#kontakt {
  padding: 60px 20px;
  margin-top: -70px;
}

.kontakt-wrapper {
  max-width: 95%;
  margin: 0 auto;
}

#kontakt h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;

}

.kontakt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.kontakt-form,
.kontakt-info {
  flex: 1 1 420px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 3px;
}

input,
textarea {
  padding: 8px 10px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  margin-top: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  background-color: hsl(197, 60%, 52%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: hsl(197, 60%, 52%);
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 0.95rem;
  color: #333;
}

.kontakt-info h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.kontakt-map {
  margin-top: 10px;
}

/*Footer*/
.site-footer {
  background-color: #f2f2f2;
  padding: 20px 10px;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  margin-top: 60px;
  border-top: 1px solid #ddd;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  margin: 0 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  color: #999;
}

/*Stelle HTML*/


/*TEST*/



h1, h2, h3, h4, h5, h6 {
  color: hsl(197, 60%, 52%);
}

/* -------------------------------------------------
   Responsive‑Ergänzungen – ANS ENDE DER CSS DATEI!
   ------------------------------------------------- */

/* ===== Einheitliche Seitenabstände ≤ 1024 px ===== */
@media (max-width: 1024px) {
  body,
  header,
  footer,
  section,
  #ueber-uns,
  #karriere,
  #kontakt,
  #leistungen {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

/* ===== Tablet (≤ 1024 px) ===== */
@media (max-width: 1024px) {

  /* — Header — */
  header {
    height: 80px;
  }
  .logo        { height: 80px; }
  nav ul       { gap: 28px; }
  nav a        { font-size: 16px; }

  /* — Hero‑Video — */
  #hero-video .overlay-text {
    font-size: 22px;
    max-width: 60%;
  }

  /* — “Über uns” — */
  #ueber-uns .content { font-size: 17px; }

  /* — Karussell — */
  .carousel-image          { width: 50%; }
  .carousel-text-container { width: 50%; }
}

/* ===== Handy quer (≤ 768 px) ===== */
@media (max-width: 768px) {

  html { font-size: 90%; }
  section { padding-top: 40px; padding-bottom: 40px; }

  /* ----------- Header + Mobile‑Menü ----------- */
  header {
    height: 64px;
  }
  .logo { height: 64px; }

  .burger {
    display: block;
    cursor: pointer;
    font-size: 28px;
    color: hsl(197, 60%, 52%);
  }

  nav ul {
    position: fixed;
    inset: 0;
    top: 64px;
    flex-direction: column;
    gap: 28px;
    background: #fff;
    padding: 40px 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
  }

  nav ul.open { transform: translateX(0); }

  .social-links { display: none; }

  /* ----------- Hero ----------- */
  #hero-video { height: 75vh; }
  #hero-video .overlay-text {
    font-size: 18px;
    max-width: 80%;
  }

  /* ----------- “Über uns” ----------- */
  #ueber-uns h2         { font-size: 24px; }
  #ueber-uns .content   { font-size: 16px; }

  /* ----------- Leistungen ----------- */
  .leistungs-tabs { gap: 6px; }
  .tab            { padding: 8px 16px; font-size: 14px; }

  .carousel       { flex-direction: column; }
  .carousel-image { width: 100%; }
  .carousel-text-container { width: 100%; }

  /* ----------- Referenzen‑Scroller ----------- */
  .referenzen-grid { gap: 16px; }
  .projekt-karte   { width: 240px; }

  /* ----------- Karriere ----------- */
  #karriere .lead  { font-size: 1.5rem; }
  #karriere p      { max-width: 95%; }

  .jobs-grid { gap: 16px; }
  .job-card  {
    flex: 0 0 80%;
    max-width: 80%;
  }

  /* ----------- Kontakt ----------- */
  .kontakt-grid           { flex-direction: column; }
  .kontakt-form, 
  .kontakt-info           { flex: 1 1 100%; }
  iframe                  { width: 100%; height: 240px; }

  /* ----------- Footer ----------- */
  .site-footer { padding-top: 20px; padding-bottom: 20px; font-size: .8rem; }
}

/* ===== Handy hoch (≤ 480 px) ===== */
@media (max-width: 480px) {

  html { font-size: 85%; }

  section { padding-top: 32px; padding-bottom: 32px; }

  .referenzen-grid { gap: 14px; }
  .projekt-karte   { width: 200px; }

  .tab {
    padding: 8px 12px;
  }
  .zertifikat-button,
  .job-card a,
  button[type="submit"] {
    padding: 8px 14px;
  }
}

/* Basis: Burger-Button immer ausblenden */
.burger { display: none; }

/* Ab ≤ 768 px anzeigen */
@media (max-width: 768px) {
  .burger {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    color: hsl(197, 60%, 52%);
    cursor: pointer;
  }
}

/* =========================================================================
   Handy‑Layout für die Leistungs‑Sektion (Bild über Text)
   ========================================================================= */
@media (max-width: 768px) {

  #leistungen .carousel,
  #leistungen .carousel-item {
    flex-direction: column;
    align-items: center;
  }

  #leistungen .carousel-image {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 16px;
  }

  #leistungen .carousel-text-container {
    width: 100% !important;
    text-align: left;
  }
}

@media (max-width: 480px) {
  #leistungen .carousel-image {
    margin-bottom: 12px;
  }
  #leistungen .carousel-text-container p {
    font-size: 0.95rem;
  }
}
