/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #ffffff;
  overflow-x: hidden;
}

.leistungen-h1 h1 {
  color: #1a1919;
  font-size: 3.8rem;
  margin: 20px auto;
  text-align: center;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  padding-bottom: 10px;
}

.leistungen-h1 p {
  color: #444444;
  font-size: 1.1rem;
  margin: 10px auto 30px auto;
  text-align: center;
  line-height: 1.6;
  max-width: 70%;
}

/* Header */
.navbar {
  background: linear-gradient(
    90deg,
    rgba(1, 95, 125, 1) 0%,
    rgba(0, 126, 166, 1) 80%,
    rgba(0, 126, 166, 1) 100%
  );
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  padding: 0 20px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 20px;
}

.navbar__item {
  margin: 0;
}

.navbar__links {
  padding: 0;
  line-height: 80px;
  text-decoration: none;
  display: inline-block;
}

.navbar__links {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar__links:hover {
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.navbar__btn .Button:hover {
  background: rgba(0, 87, 115, 1);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.navbar__actions {
  display: flex;
  list-style: none;
  gap: 15px;
}

.navbar__btn .Button {
  white-space: nowrap;
  background: linear-gradient(
    90deg,
    rgba(0, 126, 166, 1) 0%,
    rgba(0, 87, 115, 1) 100%
  );
  border: 1px solid rgb(0, 76, 97);
  padding: 10px 20px;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}
#phone {
  border: none;
  background: none;
}
.navbar__btn .Button:hover {
  background: rgba(0, 87, 115, 1);
}

.navbar__toggle {
  display: none;
}

.navbar__toggle .bar {
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

@media screen and (max-width: 1400px) {
  .navbar__menu {
    border-top: 0.4px solid #fff;
    display: grid;
    grid-template-columns: auto;
    position: absolute;
    top: -1000px;
    right: 0;
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    transition: all 0.5s ease;
    background: linear-gradient(
      90deg,
      rgba(0, 126, 166, 1) 0%,
      rgba(0, 87, 115, 1) 100%
    );
    color: white;
    text-align: center;
    padding: 20px 10px;
    height: auto;
  }

  .navbar__menu.active {
    top: 80px;
    opacity: 1;
    z-index: 99;
  }

  .navbar__menu li {
    margin: 10px 0;
  }

  .navbar__btn .Button {
    background: linear-gradient(90deg, #005f7d 0%, #007ea6 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    width: 80%;
  }

  .navbar__btn .Button:hover {
    background: #004d63;
  }

  .navbar__menu {
    transition: top 0.3s ease, opacity 0.3s ease;
  }

  .navbar__actions {
    display: none;
  }

  .navbar__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .navbar__toggle .bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
  }

  .navbar__toggle.is-active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar__toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle.is-active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
  }
}

/* Hero Section */
#hero {
  background-image: linear-gradient(rgba(0, 5, 6, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/bild2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 20px 20px;
  color: white;
  margin-bottom: 80px;
}

#hero h1 {
  font-size: 4rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  margin-bottom: -10px;
}

#hero h2 {
  font-size: 2rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  margin-bottom: 220px;
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.ctk-button {
  background: linear-gradient(
    90deg,
    rgba(0, 126, 166, 1) 0%,
    rgba(0, 126, 166, 1) 50%,
    rgba(0, 87, 115, 1) 100%
  );
  font-size: 18px;
  border: none;
  padding: 15px 30px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 50px;
}
.ctk-button a {
  color: white;
}

/* Hero Info Grid */
.hero-info-grid {
  display: flex;
  justify-content: space-around;
  margin-top: 50px;
  padding: 20px;
  border-radius: 10px;
}

.hero-info-grid .info-box {
  text-align: center;
  flex: 1;
  margin: 0 30px;
}

.hero-info-grid .info-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 10px;
}

.hero-info-grid .info-box p {
  font-size: 1rem;
  color: #dddddd;
}

/* Media Queries */

/* For tablets (screens between 768px and 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
  #hero {
    padding: 15px 15px;
    margin-bottom: 60px;
  }

  #hero h1 {
    font-size: 3rem;
    margin-bottom: -5px;
  }

  #hero h2 {
    font-size: 1.8rem;
    margin-bottom: 150px;
  }

  #hero p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .ctk-button {
    padding: 10px 25px;
    font-size: 16px;
  }

  .hero-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .info-box {
    width: 45%;
    text-align: center;
  }
}

/* For mobile devices (screens less than 768px) */
@media (max-width: 768px) {
  #hero {
    padding: 10px 10px;
    margin-bottom: 40px;
  }

  #hero h1 {
    font-size: 2.5rem;
    margin-bottom: -5px;
  }

  #hero h2 {
    font-size: 1.5rem;
    margin-bottom: 100px;
  }

  #hero p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .ctk-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero-info-grid {
    display: block;
  }

  .info-box {
    margin-bottom: 20px;
    text-align: center;
  }

  .info-box h3 {
    font-size: 1.2rem;
  }

  .info-box p {
    font-size: 0.9rem;
  }
}

/* Leistungen */
#leistungen {
  margin-bottom: 130px;
}

.slider {
  width: 100%;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
}
.slider .list {
  display: flex;
  width: 100%;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}
.slider .list .item {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 20s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc(
    (20s / var(--quantity)) * (var(--position) - 1) - 20s
  ) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.slider .list .item img {
  width: 100%;
}

@keyframes autoRun {
  from {
    left: 100%;
  }
  to {
    left: calc(var(--width) * -1);
  }
}
.slider:hover .item {
  animation-play-state: paused !important;
  filter: grayscale(1);
}
.slider .item:hover {
  filter: grayscale(0);
  transform: scale(1.05);
  text-shadow: 3px 3px 8px rgba(255, 255, 255, 0.9);
}

.slider .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

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

.slider-caption {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #000000;
  padding: 10px 15px;
  border-radius: 10px;
  max-width: 90%;
  /* background: linear-gradient(
    135deg,
    rgba(0, 126, 166, 1) 0%,
    rgba(0, 87, 115, 1) 100%
  ); */
  /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); */
  transition: transform 0.3s ease, background 0.3s ease;
  /* text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); */
  font-weight: bold;
}

/* Über das Unternehmen*/
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
}

.container {
  background-color: #f4f4f4;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.image-section {
  flex: 1 1 40%;
  max-width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.text-section {
  flex: 1 1 60%;
  max-width: 45%;
  padding: 20px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

p {
  margin-bottom: 15px;
  line-height: 1.6;
}

p strong {
  font-weight: bold;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(
    90deg,
    rgba(0, 126, 166, 1) 0%,
    rgba(0, 126, 166, 1) 50%,
    rgba(0, 87, 115, 1) 100%
  );
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
}

.button:hover {
  background: linear-gradient(
    90deg,
    rgb(0, 72, 94) 0%,
    rgb(0, 76, 99) 50%,
    rgb(0, 37, 49) 100%
  );
}

/* Media Queries for 'Über uns' Section */

/* For tablets (screens between 768px and 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
  .container {
    flex-wrap: wrap;
    padding: 15px;
    gap: 20px;
  }

  .image-section {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }

  .image-section img {
    width: 80%;
    margin: 0 auto;
    border-radius: 8px;
  }

  .text-section {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
    padding: 10px;
  }

  .text-section h1 {
    font-size: 1.8rem;
  }

  .text-section p {
    font-size: 1rem;
  }

  .text-section .button {
    display: inline-block;
    margin: 10px auto;
  }
}

/* For mobile devices (screens less than 768px) */
@media (max-width: 768px) {
  .container {
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
  }

  .image-section {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }

  .image-section img {
    width: 100%;
    margin: 0 auto;
    border-radius: 5px;
  }

  .text-section {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
    padding: 10px;
  }

  .text-section h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .text-section p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .text-section .button {
    display: inline-block;
    padding: 8px 15px;
    font-size: 0.9rem;
    margin: 10px auto;
  }
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #1b2838, #0d1117);
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0 auto;
  gap: 40px;
}

.footer-section {
  flex: 1 1 30%;
  min-width: 250px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: rgba(0, 126, 166, 1);
  text-transform: uppercase;
  border-bottom: 2px solid rgba(0, 126, 166, 1);
  padding-bottom: 10px;
}

.footer-section p,
.footer-section a {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.8;
  text-decoration: none;
}

.footer-section a:hover {
  color: #00ced1;
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 126, 166, 1);
  transition: all 0.3s ease;
}

.social-icons a img {
  width: 30px;
  height: 30px;
  filter: invert(1);
}

.social-icons a:hover {
  background-color: #017580;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid #444444;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #aaaaaa;
}

.footer-bottom p {
  margin: 0;
}
