/* KORREKTUR: Lokale Einbindung von Google Fonts (Montserrat) */
/* Diese @font-face Regeln müssen am ANFANG Ihrer CSS-Datei stehen */

/* montserrat-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  /* KORREKTUR: Pfad an die Ordnerstruktur "/Root/fonts/" angepasst */
  src: url('fonts/montserrat-v30-latin-regular.woff2') format('woff2');
}
/* montserrat-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  /* KORREKTUR: Pfad an die Ordnerstruktur "/Root/fonts/" angepasst */
  src: url('fonts/montserrat-v30-latin-500.woff2') format('woff2');
}
/* montserrat-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  /* KORREKTUR: Pfad an die Ordnerstruktur "/Root/fonts/" angepasst */
  src: url('fonts/montserrat-v30-latin-600.woff2') format('woff2');
}
/* montserrat-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  /* KORREKTUR: Pfad an die Ordnerstruktur "/Root/fonts/" angepasst */
  src: url('fonts/montserrat-v30-latin-700.woff2') format('woff2');
}

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Allgemeine Section-Definition für alle Bereiche */
section {
  max-width: 1100px;
  margin: 6rem auto;
  padding: 0 1rem;
}

/* Überschriften */
h1, h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 2rem;
  font-weight: 600;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 2rem;
}

/* Grids für Leistungen, Über uns, Referenzen */
.leistungen-grid, .ueberuns-grid, .referenzen-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Karten-Design */
.leistung, .person, .referenz {
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1.5rem;
  width: 320px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.3s ease;
}

.leistung:hover, .person:hover, .referenz:hover {
  transform: translateY(-5px);
}

/* Bilddarstellung innerhalb der Karten */
.leistung img, .person img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Formularelemente */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #bbb;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

button {
  background-color: #003366;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #002244;
}

#scrollTopBtn {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  font-size: 24px;
  padding: 10px 15px;
  background-color: rgba(128, 128, 128, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background-color: rgba(100, 100, 100, 0.5);
  transform: translateY(-2px);
}

/* Optimierte Darstellung für kleinere Bildschirme */
@media (max-width: 768px) {
  section {
    margin: 4rem auto;
  }

  .leistung, .person, .referenz {
    width: 90%;
  }
}
