@import url(../styles/header.css);
@import url(../styles/footer.css);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Tahoma, Geneva, Verdana, Arial, Helvetica, sans-serif;
}

:root {
  --bg-color-n-one: #00aeff;
  --bg-color-n-two: #585bff;
  --bh-color-b-three: #e6f0fa;
  --main-color: #e6f0fa;
  --button-login-hover: #a6d1ff;
  --glass-bg: rgba(255, 255, 255, 0.322);
  --glass-border: rgba(255, 255, 255, 0.199);
  --background-color-main: #e6f0fa;
  --button-main: #8178ff;
  --button-main-hover: #d65757;
  --text-dark: #1f2937;
  --text-soft: #555;
  --white: #ffffff;
  --shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
}

/* HERO */
.nummer-one {
  min-height: 100vh;
  display: flex;
  color: black;
  font-size: 1.2rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.text-potion-for-img {
  width: 50%;
  padding: 25px 100px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.pic-potion-for-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100vh;
  background-color: #f4feff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.pic-potion-for-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-kicker {
  display: inline-block;
  width: fit-content;
  background-color: var(--background-color-main);
  color: #2b60ff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #111827;
}

.rotating-wrapper {
  height: 4.8rem;
  overflow: hidden;
  display: inline-block;
  position: relative;
  margin-left: 0.35rem;
  margin-right: 0.35rem;
  color: var(--button-main);
}

#rotating-text {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s ease-in-out;
}

#rotating-text span {
  height: 4.8rem;
  padding-top: -20px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  font-weight: 800;
}

.static-text {
  margin-left: 0;
}

.hero-description {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.main-btn,
.outline-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s ease;
}

.main-btn {
  background-color: var(--button-main);
  color: white;
}

.main-btn:hover {
  background-color: var(--button-main-hover);
  transform: translateY(-3px);
}

.outline-btn {
  border: 2px solid var(--button-main);
  color: var(--button-main);
  background-color: transparent;
}

.outline-btn:hover {
  background-color: var(--button-main);
  color: white;
  transform: translateY(-3px);
}

.hero-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-mini-stats div {
  background-color: var(--background-color-main);
  padding: 1rem;
  border-radius: 12px;
  min-width: 150px;
}

.hero-mini-stats strong {
  display: block;
  color: #2b60ff;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.hero-mini-stats span {
  color: #555;
  font-size: 0.9rem;
}

/* SECTIONS */
.section {
  padding: 4rem 2rem;
  background-color: #fff;
}

.section h2 {
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
  color: #222;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* CARDS */
.feature {
  flex: 1 1 250px;
  background-color: #e6f0fa;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.16);
}

.feature-icon {
  width: 55px;
  height: 55px;
  background-color: var(--button-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
}

.feature h3 {
  font-size: 1.25rem;
  color: #222;
}

.feature p {
  color: #555;
  line-height: 1.7;
}

/* FORMULAR */
.form-wrapper {
  background-color: var(--background-color-main);
}

.form-intro {
  max-width: 850px;
  margin: 0 auto 2rem;
  text-align: center;
}

.form-intro p {
  color: #555;
  line-height: 1.7;
}

.cleaning-form {
  max-width: 1050px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1.2rem;
}

label {
  display: flex;
  flex-direction: column;
  color: #222;
  font-weight: 700;
  margin-bottom: 1.2rem;
  gap: 0.5rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1rem;
  color: #222;
  background-color: #f8fbff;
  outline: none;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--button-main);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(129, 120, 255, 0.15);
}

textarea {
  resize: vertical;
}

.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 400;
  color: #555;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  background-color: var(--button-main);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--button-main-hover);
  transform: translateY(-2px);
}

.form-note {
  margin-top: 1rem;
  color: #555;
  font-size: 0.9rem;
  text-align: center;
}

.alert {
  display: none;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.alert.success {
  background-color: #d8ffe4;
  color: #147a36;
}

.alert.error {
  background-color: #ffe1e1;
  color: #b42323;
}

/* STEPS */
.steps-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 40px 0;
  text-align: center;
  flex-direction: row;
  gap: 1rem;
}

.step {
  flex: 1 1 250px;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.step h3 {
  color: #222;
}

.step p {
  color: #555;
  line-height: 1.7;
}

.search-step-one,
.search-step-two,
.search-step-three {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  font-size: 1.6rem;
  font-weight: 900;
  color: white;
}

.search-step-one:hover,
.search-step-two:hover,
.search-step-three:hover {
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.22);
}

.search-step-one {
  background-color: #fb9d7b;
}

.search-step-two {
  background-color: #8bc191;
}

.search-step-three {
  background-color: #c3c5ff;
}

.arrow {
  font-size: 2rem;
  color: #aaa;
  padding: 0 10px;
}

/* INFO CARDS */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border-radius: 1rem;
  padding: 4rem 2rem 100px;
}

.features-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.information-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  padding: 2rem;
  background-color: var(--background-color-main);
  border-radius: 12px;
}

.Auftraggeber-infos,
.dienstleister-infos {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  flex: 1 1 300px;
  max-width: 400px;
  min-height: 210px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.Auftraggeber-infos:hover,
.dienstleister-infos:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.Auftraggeber-infos h3,
.dienstleister-infos h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #222;
}

.Auftraggeber-infos p,
.dienstleister-infos p {
  font-size: 1rem;
  color: #555;
  text-align: center;
  line-height: 1.7;
}

/* CTA */
.cta-section {
  padding: 4rem 2rem;
  background-color: #e6f0fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.cta-section-text {
  flex: 1 1 60%;
}

.cta-section-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section-text p {
  color: #555;
  line-height: 1.7;
}

.cta-section-button {
  flex: 1 1 30%;
  text-align: right;
}

.cta-section-button a {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  background-color: var(--button-main);
  text-decoration: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.cta-section-button a:hover {
  background-color: var(--button-main-hover);
}

/* FAQ */
#faq {
  margin: 0 auto;
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  background-color: #ffffff;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  margin: 0.5rem auto;
  border-radius: 10px;
  max-width: 900px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem;
  text-align: left;
  font-weight: bold;
  background: var(--button-main);
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.1s ease;
  font-size: 1rem;
  border-radius: 10px;
  color: white;
}

.faq-question:hover {
  background: var(--button-main-hover);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  background: #fff;
  transition: max-height 0.3s ease;
  text-align: left;
}

.faq-answer p {
  margin: 1rem 0;
  color: #555;
  line-height: 1.7;
}

/* MOBILE */
@media (max-width: 900px) {
  .nummer-one {
    flex-direction: column;
    min-height: auto;
  }

  .text-potion-for-img {
    width: 100%;
    padding: 2rem 1rem;
    order: 2;
  }

  .pic-potion-for-img {
    position: relative;
    width: 100%;
    height: 360px;
    order: 1;
  }

  .pic-potion-for-img img {
    height: 100%;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .rotating-wrapper {
    height: 2.8rem;
  }

  #rotating-text span {
    height: 2.8rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .main-btn,
  .outline-btn {
    width: 100%;
    text-align: center;
  }

  .hero-mini-stats {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cleaning-form {
    padding: 1.25rem;
  }

  .steps-wrapper {
    flex-direction: column;
  }

  .arrow {
    transform: rotate(90deg);
  }

  .information-cards {
    gap: 1rem;
    padding: 1rem;
  }

  .cta-section {
    flex-direction: column;
    text-align: center;
  }

  .cta-section-button {
    width: 100%;
    text-align: center;
  }

  .cta-section-button a {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .section,
  #faq {
    padding: 2.5rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .features-section {
    padding: 2.5rem 1rem;
    border-radius: 0;
  }

  .feature,
  .step,
  .Auftraggeber-infos,
  .dienstleister-infos {
    padding: 1.25rem;
  }
}
