/* ==========================
   Grundlegendes Styling
========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background: #fff;
}


/* ==========================
   Header / Sprachbuttons über Navigation
========================== */
.header-top {
  display: flex;
  justify-content: space-between; /* Logo links, Buttons rechts */
  align-items: center;
  padding: 10px 30px;
}

.header-top .logo img {
  max-height: 90px;
}

.header-top .lang a {
  background: #0073e6;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 5px;
}

.header-top .lang a:hover {
  background: #005bb5;
}

/* ==========================
   Navigation unterhalb
========================== */
nav.main-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 10px 0;
}

nav.main-nav a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}

nav.main-nav a:hover {
  color: #0073cc;
}


/* ==========================
   Hero Section
========================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100vw;
  height: 100vh;
  background-image: url('images/hintergrund-1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-content {
  background: rgba(0,0,0,0.5);
  padding: 30px 20px;
  border-radius: 10px;
  color: white;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-content .cta {
  font-size: 1rem;
  text-decoration: none;
}

/* ==========================
   Services Section
========================== */

/* Services Container flexibel */
#services_container.services {
  display: flex;
  flex-wrap: wrap;          /* mehrere Cards nebeneinander */
  justify-content: center;  /* zentriert */
  gap: 20px;
  padding: 40px 20px;
  background: #f9f9f9;
}

/* Jede Card */
.service-card {
  flex: 1 1 80%;          /* wächst mit Text, Mindestbreite autopx */
  max-width: 80%;          /* optional */
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  padding: 10px;
  text-align: left;
  overflow-wrap: break-word; /* lange Wörter umbrechen */
  white-space: normal;     /* Zeilenumbrüche aus JSON korrekt darstellen */
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Icon innerhalb der Card */
.service-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0px;
  text-align: center;
}

#services_container .service-card h3,
#services_container .service-card p,
#services_container .service-card ul {
  text-align: center;
}


#services_container .service-card {
  padding: 40px 20px; /* weniger Abstand oben/unten */
}

#services_container .service-card p,
#services_container .service-card ul {
  margin:  0px;
  padding: 0px;
}

/* Hover-Effekt */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Mobile */
@media (max-width: 768px) {
  .service-card {
    flex: 1 1 100%;          /* volle Breite */
    max-width: 100%;
    padding: 15px;
  }
  .service-card h3 {
    font-size: 1.3rem;
  }
}


/* ==========================
   Schleifprozess-Optimierung / Bilder
========================== */


#technology {
  text-align: center;
}

#technology h2,
#technology p {
  max-width: 800px;       /* Textbreite begrenzen */
  margin: 0 auto 20px;    /* oben 0, unten 20px, horizontal zentriert */
}

/* Container zentrieren */
#technology .image-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Übergang + Klick-Icon */
#technology .image-container img {
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Zoomed-Bild zentriert auf Bildschirm */
#technology .image-container img.zoomed {
  transform: scale(1.3);
  z-index: 10;
}

/* Entferne Hover-Scale */
#technology .image-container img:hover {
  transform: none;
}

/* ==========================
   About Section
========================== */
#about {
  padding: 60px 20px;
  text-align: center;
}

#about ul {
  display: inline-block;   /* macht Block mittig */
  text-align: left;        /* Text linksbündig */
  padding: 0;
}

@media (max-width: 768px) {  /* Tablets / kleinere Bildschirme */
  #about {
    padding: 40px 15px;     /* Weniger Padding */
    font-size: 0.95rem;     /* Text leicht verkleinern */
  }
}

@media (max-width: 480px) {  /* Smartphones */
  #about {
    padding: 30px 10px;     /* Noch kompakter */
    font-size: 0.8rem;      /* Text kleiner */
  }
}


/* ==========================
   Contact Section
========================== */
/* Kontaktformular zentriert, max. Breite 500px */
#kontaktForm {
  max-width: 500px;   /* maximale Breite des Formulars */
  margin: 20px auto;  /* horizontal zentrieren, vertikaler Abstand */
  display: flex;
  flex-direction: column;  /* Felder untereinander */
  gap: 10px;               /* Abstand zwischen den Feldern */
}

#contact {
  padding: 60px 20px;
  background: #f4f4f4;
  text-align: center;
}

#contact form input,
#contact form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#contact form button {
  background: #0073e6;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

#contact form button:hover {
  background: #005bb5;
}

/* ==========================
   Footer
========================== */
footer {
  padding: 20px;
  text-align: center;
  background: #222;
  color: white;
  font-size: 0.9rem;
}

/* ==========================
   Überschriften
========================== */
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0073e6;
}

/* ==========================
   Responsive Design
========================== */

/* Tablets / kleinere Desktops 
@media (max-width: 1024px) {
  .services {
    flex-direction: column;
    align-items: center;
  }
  
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Tablets / größere Smartphones */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  nav {
    margin-top: 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}
*/
/* ==========================
   Smartphones / max-width: 480px
========================== */
@media (max-width: 480px) {
  /* Header vertikal */
  header {
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
    align-items: stretch;
  }

  /* Obere Zeile: Logo links, Sprachbuttons rechts */
  .header-top {
    display: flex;
    justify-content: space-between; /* Logo links, Sprachbuttons rechts */
    align-items: center;
    width: 80%;
    margin-bottom: 0.5rem; /* Abstand zur Navigation */
  }

  .header-top .logo img {
    max-height: 40px; /* Skalierbare Höhe */
  }
  header .lang {
  transform: translateX(290px) translateY(-80px);
  }
  .header-top .lang {
    display: flex;
    gap: 0.5rem; 
  }

  .header-top .lang a {
    font-size: 0.7rem;
    padding: 4px 8px; /* Größe wie Kontakt-Button */
    border-radius: 5px;
    background: #0073e6;
    color: white;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
  }

  .header-top .lang a:hover {
    background: #005bb5;
  }

  /* Navigation horizontal direkt unter der oberen Zeile */
  nav.main-nav {
  transform: translateX(0px) translateY(-15px);
  }
  nav.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem;       /* Abstand zwischen Buttons */
    margin-top: 0.4rem; /* Abstand zur oberen Zeile */
  }

  nav.main-nav a {
    font-size: 0.9rem;
    padding: 6px 12px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
  }

  nav.main-nav a:hover {
    color: #0077cc;
  }
}