/* ============================================================
   Homepage sections — WieNeuRein
   ============================================================ */

/*
 * Break full-bleed sections out of Mercury's .region-content container
 * (which applies Tailwind `container mx-auto px-4`).
 * Mercury sets container-type: inline-size on .layout-content, so 100cqw
 * equals the full viewport width. Same technique as Mercury's .cq-full utility.
 */
.cm-hp-hero,
.cm-hp-usp,
.cm-hp-calculator,
.cm-hp-steps,
.cm-hp-faq,
.cm-hp-cta {
  width: 100cqw;
  margin-inline: calc(-50cqw + 50%);
}

/* Hero */
.cm-hp-hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: #1a1a2e;
}

.cm-hp-hero .cm-hp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .55;
}

.cm-hp-hero__body {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 4rem 1.5rem;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.cm-hp-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cm-hp-hero__sub {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: .92;
}

.cm-hp-hero__cta {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: .85rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s;
}

.cm-hp-hero__cta:hover {
  background: #1d4ed8;
  color: #fff;
}

/* USP bar */
.cm-hp-usp {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 2.5rem 1.5rem;
}

.cm-hp-usp__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cm-hp-usp__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cm-hp-usp__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
}

.cm-hp-usp__icon {
  font-size: 2rem;
  line-height: 1;
}

.cm-hp-usp__icon img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

.cm-hp-usp__label {
  font-weight: 600;
  font-size: .95rem;
  color: #1e293b;
}

.cm-hp-usp__desc {
  font-size: .85rem;
  color: #64748b;
}

/* Section wrapper */
.cm-hp-section {
  padding: 3.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cm-hp-section__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #0f172a;
}

/* Services section — no max-width, fills region-content like City_Hub's stwl-container */
.cm-hp-services-section {
  padding: 3.5rem 0 2rem;
}

/* Services grid */
.cm-hp-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cm-hp-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cm-hp-service-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}

.cm-hp-service-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.cm-hp-service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.cm-hp-service-card__name {
  padding: .75rem 1rem;
  font-weight: 600;
  font-size: .95rem;
  color: #1e293b;
}

/* Calculator section */
.cm-hp-calculator {
  background: #eff6ff;
  padding: 3.5rem 1.5rem;
}

.cm-hp-calculator__inner {
  max-width: 900px;
  margin: 0 auto;
}

.cm-hp-calculator__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #0f172a;
}

/* How it works */
.cm-hp-steps {
  background: #f8fafc;
  padding: 3.5rem 1.5rem;
}

.cm-hp-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
}

@media (min-width: 640px) {
  .cm-hp-steps__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cm-hp-step {
  text-align: center;
}

.cm-hp-step__num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.cm-hp-step__title {
  font-weight: 700;
  margin-bottom: .4rem;
  color: #1e293b;
}

.cm-hp-step__desc {
  font-size: .9rem;
  color: #64748b;
}

/* Cities grid */
.cm-hp-cities {
  padding: 3.5rem 1.5rem;
}

.cm-hp-cities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .cm-hp-cities__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .cm-hp-cities__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cm-hp-city-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .9rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  font-size: .9rem;
  color: #334155;
  background: #fff;
  transition: border-color .15s, color .15s;
}

.cm-hp-city-link:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* FAQ section */
.cm-hp-faq {
  background: #f8fafc;
  padding: 3.5rem 1.5rem;
}

.cm-hp-faq__inner {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ items (Paragraph-based) */
.cm-faq__item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: .75rem;
  background: #fff;
  overflow: hidden;
}

.cm-faq__question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cm-faq__question::-webkit-details-marker {
  display: none;
}

.cm-faq__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: #64748b;
  transition: transform .2s;
}

.cm-faq__item[open] > .cm-faq__question::after {
  transform: rotate(45deg);
}

.cm-faq__answer {
  padding: 0 1.25rem 1rem;
  color: #334155;
  font-size: .95rem;
  line-height: 1.6;
}

/* Final CTA */
.cm-hp-cta {
  background: #1e293b;
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
}

.cm-hp-cta__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cm-hp-cta__sub {
  font-size: 1.05rem;
  opacity: .85;
  margin-bottom: 2rem;
}

.cm-hp-cta__btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: .85rem 2.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s;
}

.cm-hp-cta__btn:hover {
  background: #1d4ed8;
  color: #fff;
}
