body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 1.2em;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

header {
  background-image: url("Designer (11).jpeg");
  background-size: cover;
  background-position: center;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 50px;
}

header p {
  background-color: red;
  color:white;
  padding: 20px 40px;
  border-radius: 10px;
  margin-top: 100px;
  text-align: center;
}

section {
  padding: 0 5vw;
}

.header-content {
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.scroll-contact {
  margin: 20px 0;
}

.croll-content {
  background-color: #f0f0f0; 
  padding: 20px 0;
}

button#scroll-to-contact {
  display: block;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button#scroll-to-contact:hover {
  background-color: #0056b3;
}

#info {
  padding: 20px 40px;
  margin-bottom: 20px;
}

#info div {
  max-width: 800px;
  margin: 0 auto;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: row;
  width: 100%;
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service:nth-child(even) {
  text-align: right;
}

.service:nth-child(even) ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.service:hover {
  transform: scale(1.05);
}

h4,
.red {
  color: rgb(213, 45, 45);
}

.red {
  display: contents;
}

.service-text ul {
  list-style-type: decimal;
}

.slideshow {
  flex: 1;
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}

.service-text {
  flex: 4;
  padding: 20px;
}

#contact,
#info {
  background-color: #f0f0f0;
}

#contact {
  margin-top: 30px;
}

.contact {
  text-align: center;
  margin-bottom: 40px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.container {
  margin-top: 20px;
  padding: 30px 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#message-box {
  margin-bottom: 20px;
}

form select,
form input,
form textarea {
  border: 0;
  border-radius: 10px;
  padding: 20px;
  font-size: 0.9em;
}

form label {
  margin-left: 30px;
  color: #333;
  display: flex;
  align-items: center;
}

label input {
  width: 30px;
  height: 30px;
  background-color: white;
}

input[type="submit"] {
  background-color: #007bff;
  color: white;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
  background-color: #0056b3;
}

.hp-desc {
  display: none;
}

footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 20px 0;
}

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

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

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .service {
    flex-direction: column;
  }

  .service-text,
  .slideshow {
    flex: none;
    width: 100%;
  }

  .service:nth-child(even) ul {
    align-items: flex-start;
  }

  section {
    padding: 0 5%;
  }
}

@media (max-width: 450px) {
  body {
    font-size: 1em;
  }
  #info {
    padding: 20px;
  }

  section {
    padding: 0;
  }

  form {
    max-width: 400px;
  }

  .slideshow {
    display: none;
  }

  .service:nth-child(even) {
    text-align: left;
  }
}

@media print {
  body {
    size: A4;
  }

  .scroll-contact,
  #contact,
  footer {
    display: none !important;
  }

  #info {
    background-color: white;
  }

  section {
    margin-top: 20px;
  }

  .service:hover {
    transform: scale(1);
  }

  .service:nth-child(5) {
    margin-top: 20px;
  }
}
