/**
 * Startseite: hero-machine, what-we-do, how-we-work, home-categories
 * Mobile-first, großer Weißraum, keine Slider/Animationen.
 * Hero: Hintergrundbild via CSS, dunkler Overlay, ein CTA.
 */

/* ---------- Hero (hero-machine) ---------- */
.hero-machine {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  background-color: #2c2c2c;
  background-size: cover;
  background-position: 25% center;
  background-repeat: no-repeat;
  background-image: var(--hero-bg, none);
}

.hero-machine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero-machine__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 16px 32px;
  padding-left: clamp(16px, 6vw, 72px);
}

.hero-machine__headline {
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  max-width: 14ch;
}

.hero-machine__text {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 20px;
  max-width: 42ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-machine__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-machine__cta:hover {
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .hero-machine {
    background-position: 50% center;
  }
}

@media (min-width: 640px) {
  .hero-machine {
    min-height: 75vh;
    align-items: center;
  }
  .hero-machine__inner {
    padding: 48px 32px;
    padding-left: clamp(16px, 6vw, 72px);
  }
  .hero-machine__headline {
    margin-bottom: 16px;
  }
  .hero-machine__text {
    font-size: 1.125rem;
    margin-bottom: 28px;
  }
}

/* ---------- Gemeinsame Section-Basis ---------- */
.home-section {
  padding: 48px 0;
}

.home-section__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 16px;
}

.home-section__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin: 0 0 32px;
  color: var(--ink, #1f1f1f);
}

@media (min-width: 640px) {
  .home-section {
    padding: 64px 0;
  }
  .home-section__inner {
    padding: 0 24px;
  }
  .home-section__title {
    margin-bottom: 40px;
  }
}

/* ---------- CTA Footer (home-cta) ---------- */
.home-cta {
  background: var(--bg, #faf7f2);
}

.home-cta__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
}

.home-cta__title {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink, #1f1f1f);
}

.home-cta__subline {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  color: var(--muted, #6b645c);
}

.home-cta__actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- What we do ---------- */
.what-we-do {
  background: var(--bg, #faf7f2);
}

.what-we-do__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .what-we-do__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.what-we-do__item {
  padding: 24px;
  background: #fff;
  border-radius: var(--radius, 18px);
  border: 1px solid var(--border, rgba(30, 20, 10, 0.1));
  box-shadow: 0 6px 18px rgba(20, 12, 6, 0.06);
}

.what-we-do__item-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink, #1f1f1f);
}

.what-we-do__item-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  color: var(--muted, #6b645c);
}

/* ---------- How we work ---------- */
.how-we-work__text {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin: 0;
  max-width: 65ch;
  color: var(--ink, #1f1f1f);
}

@media (min-width: 640px) {
  .how-we-work__text {
    font-size: 1.125rem;
  }
}

/* ---------- Home categories ---------- */
.home-categories {
  background: #fff;
}

.home-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.home-categories__card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius, 18px);
  border: 1px solid var(--border, rgba(30, 20, 10, 0.1));
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-categories__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(20, 12, 6, 0.08);
  border-color: rgba(184, 135, 58, 0.3);
}

.home-categories__card-name {
  font-weight: 600;
  font-size: 1rem;
}

.home-categories__all {
  display: inline-flex;
}

.footer-divider {
  height: 1px;
  background: var(--border, rgba(30, 20, 10, 0.1));
  margin: 0;
}
