/* Basic CSS Reset */

html {
  scroll-padding-top: 100px; /* Höhe der Navbar */
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

* {
  box-sizing: border-box;
}

body {
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.1;
}

input,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
}
/* END */

@font-face {
  font-family: Topol;
  src: url("./Topol-Bold.woff2") format("woff2");
}

* {
  font-family: "Topol";
}

.separator {
  display: flex;
  align-items: center;
  width: 100%;
  height: 10px; /* Höhe des Trennstrichs */
  background-color: #f8f9fa;
}

.left {
  flex: 1;
  background-color: red;
  height: 0.5vh;
}

.right {
  height: 0.5vh;
  flex: 1;
  background-color: black;
}

/* NAVBAR */

nav {
  background-color: #ffffff;
  padding: 1rem;
  height: 100px;
  position: fixed;
  width: 100vw;
  z-index: 50;
  font-weight: bold;
}

nav ul {
  display: flex;
  padding: 1rem 0;
  gap: 30px;
  padding-right: 45px;
  position: relative;
}

.container {
  display: flex;
  justify-content: space-between;
}

.bold-space-fitted {
  margin-left: 30px;
  font-weight: bold;
  font-size: xx-large;
  letter-spacing: -1px;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-list {
  display: none;
  position: absolute;
  background-color: #e2e2e2;
  min-width: 160%;
  list-style-type: none;
  padding: 8px;
  margin-top: 0px; /* Ensure space between dropdown and its parent */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Optional, to add shadow */
  border-radius: 10px;
}

.dropdown-container:hover .dropdown-list {
  display: block;
}

.dropdown-list li:hover {
  text-decoration: underline;
  cursor: pointer;
}

.underline:hover {
  border-bottom: 1px solid black;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger .bar {
  width: 30px;
  height: 3px;
  background-color: black;
}

/* Show Hamburger on smaller screens */
@media (max-width: 775px) {
  nav ul {
    display: none; /* Hide the default menu */
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 80px;
    right: 0;
    background-color: white;
    width: 100%;
    padding: 1rem;
  }

  nav.active ul {
    display: flex;
  }

  /* Verstecktes Menü */
  nav ul {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
  }

  nav.active ul {
    display: flex;
    animation: slideIn 0.3s ease-in forwards;
  }

  nav.closing ul {
    animation: slideOut 0.3s ease-in forwards;
  }

  /* Keyframes für das Einblenden */
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Keyframes für das Ausblenden */
  @keyframes slideOut {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-20px);
    }
  }

  .hamburger {
    display: flex;
  }

  .dropdown-list {
    background-color: transparent;
    position: static;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }

  .dropdown-container .dropdown-list {
    display: block;
  }

  .nav-links li {
    text-align: center;
  }
}

/* Toggle Hamburger Menu */
/* Basisstil für die Bars */
nav .hamburger .bar {
  transition: transform 0.3s ease-in, top 0.3s ease-in, opacity 0.3s ease-in;
}

/* Zustand im normalen (geschlossenen) Zustand */
nav .hamburger .bar:nth-child(1) {
  transform: rotate(0);
  position: relative;
  top: 0;
}

nav .hamburger .bar:nth-child(2) {
  opacity: 1;
}

nav .hamburger .bar:nth-child(3) {
  transform: rotate(0);
  position: relative;
  top: 0;
}

/* Zustand im aktiven (offenen) Zustand */
nav.active .hamburger .bar:nth-child(1) {
  transform: rotate(45deg);
  top: 5px;
}

nav.active .hamburger .bar:nth-child(2) {
  opacity: 0;
}

nav.active .hamburger .bar:nth-child(3) {
  transform: rotate(-45deg);
  top: -5px;
}

/* IMAGE SECTION */

.image-section {
  background: url("/images/front.jpeg");
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.overlay-text {
  line-height: 5rem;
  letter-spacing: -5px;
  position: relative;
  top: 35%;
  left: 5%;
  color: white;
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
}

/* ABOUT FRAME */
.about-frame {
  padding: 50px 20px;
  background-color: #f8f9fa;
  width: 100%;
  gap: 10px;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* Ermöglicht Umschlag für kleinere Bildschirme */
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 300px; /* Für kleinere Bildschirme */
  gap: 15px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 20vw;
  height: auto;
  border-radius: 15px; /* Abgerundete Ecken */
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column; /* Text und Bild übereinander */
    gap: 20px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .about-text {
    align-items: center;
    justify-content: center;
  }

  .about-text h2 {
    text-align: center;
  }

  .about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 80%;
    margin: 0 auto;
  }

  .about-image img {
    width: 50vw;
    height: auto;
    border-radius: 10px;
  }
}

/* Leistungen Frame */

.leistungen-frame {
  padding: 50px 20px;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Titel über dem Grid */
.leistungen-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

/* Grid Container */
.leistungen-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
  gap: 20px; /* Abstand zwischen den Elementen */
  max-width: 1200px;
  width: 100%;
}

/* Einzelne Items */
.leistungen-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border: 1px solid #ddd; /* Optional, um die Items zu betonen */
  border-radius: 10px;
  background-color: white;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional, leichter Schatten */
}

.leistungen-item:hover {
  transform: translateY(-2%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.leistungen-item h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.leistungen-item img {
  width: 100%;
  max-width: 300px; /* Maximalbreite des Bildes */
  height: auto;
  margin-bottom: 10px;
  border-radius: 10px; /* Optional, abgerundete Ecken */
}

.leistungen-item p {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 10px;
}

/* Responsive Ansicht */
@media (max-width: 768px) {
  .leistungen-content {
    grid-template-columns: 1fr; /* 1 Spalte */
    gap: 20px;
  }
}

/* REFERENZEN */

.referenzen-frame {
  padding: 50px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.referenzen-gallery {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px; /* Passe dies nach Bedarf an */
  margin: 0 auto;
}

.referenzen-item {
  display: inline-block;
  text-align: center;
}

.card {
  width: 100%;
  max-width: 600px; /* Maximalgröße der Card */
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-img {
  width: 100%;
  height: 300px; /* Stelle sicher, dass das Bild eine konstante Höhe hat */
  object-fit: cover; /* Sorgt dafür, dass das Bild gut in die Box passt */
}

.card-description {
  padding: 15px;
  font-size: 16px;
  color: #333;
}

.referenzen-gallery button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.referenzen-gallery button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive Design für verschiedene Bildschirmgrößen */

/* Für mobile Geräte (kleine Bildschirme) */
@media screen and (max-width: 767px) {
  .referenzen-gallery {
    flex-direction: column; /* Bilder untereinander anordnen */
  }

  .card {
    max-width: 90%; /* Karten auf maximal 90% der Bildschirmbreite */
    margin: 15px auto; /* Karten zentrieren mit etwas Abstand */
  }

  .card-img {
    height: 200px; /* Kleinere Höhe für mobile Geräte */
  }

  .card-description {
    font-size: 14px; /* Kleinere Schriftgröße für mobile Geräte */
  }

  button {
    font-size: 18px; /* Kleinere Pfeile auf mobilen Geräten */
    padding: 8px;
  }
}

/* Für Tablets (mittelgroße Bildschirme) */
@media screen and (max-width: 1024px) {
  .referenzen-gallery {
    flex-direction: column; /* Bilder untereinander anordnen */
  }

  .card {
    max-width: 80%; /* Karten auf maximal 80% der Bildschirmbreite */
  }

  .card-img {
    height: 250px; /* Etwas größere Höhe für Tablets */
  }

  .card-description {
    font-size: 15px; /* Kleinere Schriftgröße */
  }

  button {
    font-size: 20px; /* Etwas größere Pfeile */
    padding: 10px;
  }
}

/* Für Desktops und größere Bildschirme */
@media screen and (min-width: 1025px) {
  .referenzen-gallery {
    flex-direction: row; /* Bilder nebeneinander anordnen */
  }

  .card {
    max-width: 500px; /* Karten maximal 500px breit */
  }

  .card-img {
    height: 300px; /* Standardhöhe für größere Bildschirme */
  }

  .card-description {
    font-size: 16px; /* Standard Schriftgröße */
  }

  button {
    font-size: 24px; /* Standard Pfeilgröße */
    padding: 12px;
  }
}

/* Kontakt Frame */

.kontakt-frame {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.kontakt-frame h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.kontakt-frame p {
  font-size: 18px;
  margin-bottom: 40px;
}

.kontakt-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  all: unset; /* Entfernt ALLE Browser-Standardstile */
  appearance: none; /* Entfernt plattformspezifische Stile */
  -webkit-appearance: none; /* Entfernt Stile für Safari */

  /* Gewünschtes Styling */
  color: #333; /* Textfarbe */
  font-size: 18px;
  font-weight: bold; /* Fettgedruckter Text */
  position: relative; /* Ermöglicht das Hinzufügen des Balkens */
  cursor: pointer; /* Hand-Cursor anzeigen */
  display: inline-block; /* Block wie ein Textlink */
}

.submit-btn::after {
  content: ""; /* Pseudo-Element für den Balken */
  position: absolute;
  left: 0;
  bottom: -3px; /* Abstand unter dem Text */
  width: 30%; /* Startbreite des Balkens */
  height: 2px; /* Höhe des Balkens */
  background-color: red; /* Farbe des Balkens */
  transition: width 0.3s ease; /* Sanfter Übergang beim Hovern */
}

.submit-btn:hover::after {
  width: 100%; /* Balken wird bei Hover vollständig */
}

/* Optional: Fokus-Stil für Tastaturnavigation */
.submit-btn:focus {
  outline: none; /* Entfernt den Fokusrahmen */
}

/* Responsive Design */

/* Für mobile Geräte (kleine Bildschirme) */
@media screen and (max-width: 767px) {
  .kontakt-frame {
    padding: 20px;
  }

  .kontakt-frame h1 {
    font-size: 28px;
  }

  .kontakt-frame p {
    font-size: 16px;
  }

  .kontakt-form {
    padding: 20px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
  }

  .submit-btn {
    font-size: 16px;
    padding: 12px;
  }
}

/* Für Tablets (mittelgroße Bildschirme) */
@media screen and (max-width: 1024px) {
  .kontakt-frame {
    padding: 30px;
  }

  .kontakt-frame h1 {
    font-size: 30px;
  }

  .kontakt-frame p {
    font-size: 17px;
  }

  .kontakt-form {
    padding: 25px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 15px;
  }

  .submit-btn {
    font-size: 17px;
  }
}

.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #ffffff;
  background-color: #1a1a1a; /* Dunkelgrau als neutrale Fläche */
  border-top: 3px solid #d40000; /* Roter Akzent nur als schmaler Streifen */
}

.footer a {
  color: #ffffff; /* Links bleiben weiß */
  text-decoration: underline;
  margin: 0 0.5rem;
}

.footer a:hover {
  color: #d40000; /* Rot nur beim Hover für kleine Akzente */
}
