/* ============================================================
   index.css – Startseite: Hero, Leistungen, Über uns,
               Referenzen, CTA-Band
   Benötigt: base.css
   ============================================================ */

/* ── Hero ── */
.hero {
  min-height: 100vh;
  padding-top: 68px;
  background: var(--dark-base);
  background-image: url('../images/hero-rohbau.jpg');
  background-size: cover;
  background-position: center 40%;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  overflow: hidden;
}

/* Dunkles Overlay über dem Foto */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 28, 20, 0.82) 0%,
    rgba(26, 28, 20, 0.65) 55%,
    rgba(26, 28, 20, 0.45) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Noise-Textur darüber */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-svg);
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 2;
}

.hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 68px);
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 420px; }
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
  max-width: 700px;
}

@media (min-width: 768px) { .hero__content { padding: 5rem 3rem 7rem; } }
@media (min-width: 1280px) { .hero__content { padding: 5rem 5rem 7rem 6rem; } }

.hero__eyebrow {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--brand);
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.hero__headline em {
  font-style: italic;
  color: var(--brand-light);
}

.hero__subline {
  font-size: 1.05rem;
  color: var(--sand-light);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero decorative side panel */
.hero__panel {
  display: none;
  position: relative;
  background: var(--dark-surface);
  overflow: hidden;
}

@media (min-width: 1024px) { .hero__panel { display: block; } }

.hero__panel-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--brand);
}

.hero__panel-hatch {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(93, 181, 43, 0.12) 18px,
    rgba(93, 181, 43, 0.12) 19px
  );
}

.hero__panel-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2.5rem;
}

.hero__panel-badge {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  background: rgba(26, 28, 20, 0.6);
  border-left: 3px solid var(--brand);
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
}

.hero__panel-stat {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 900;
  color: var(--white);
  opacity: 0.08;
  line-height: 1;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
}

/* Hero stats strip */
.hero__stats {
  position: relative;
  z-index: 3;
  background: var(--dark-surface);
  border-top: 1px solid rgba(93, 181, 43, 0.3);
}

.hero__stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

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

.stat-item {
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(93, 181, 43, 0.2);
  text-align: center;
}

.stat-item:last-child { border-right: none; }
.stat-item:nth-child(2) { border-right: none; }

@media (min-width: 768px) {
  .stat-item:nth-child(2) { border-right: 1px solid rgba(93, 181, 43, 0.2); }
  .stat-item:nth-child(4) { border-right: none; }
}

.stat-item__num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-item__label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ── Leistungen ── */
.leistungen {
  background: var(--white);
  padding: 0 0 6rem;
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
}

@media (max-width: 767px) {
  .leistungen { clip-path: polygon(0 1.5%, 100% 0, 100% 100%, 0 100%); }
}

.leistungen__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.leistungen__head {
  padding-top: 6rem;
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .leistungen__head { grid-template-columns: 1fr 1fr; align-items: end; }
}

.leistungen__head .section-title { color: var(--text); }

.leistungen__head p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 380px;
  line-height: 1.7;
}

.leistungen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--cream-dark);
}

@media (min-width: 600px) { .leistungen__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .leistungen__grid { grid-template-columns: repeat(3, 1fr); } }

.leistung-card {
  background: var(--white);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
  cursor: default;
}

.leistung-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.leistung-card:hover { background: var(--cream); }
.leistung-card:hover::before { transform: scaleY(1); }

.leistung-card__icon {
  width: 48px;
  height: 48px;
  background: var(--dark-base);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.leistung-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leistung-card__num {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.5rem;
}

.leistung-card__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.leistung-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Über uns ── */
.ueber-uns {
  background: var(--dark-surface);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.ueber-uns::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-svg);
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}

.ueber-uns__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .ueber-uns__inner { grid-template-columns: 3fr 2fr; align-items: center; }
}

.ueber-uns__text .eyebrow { margin-bottom: 1.25rem; }
.ueber-uns__text .section-title { color: var(--white); margin-bottom: 1.5rem; }

.ueber-uns__text p {
  color: var(--sand-light);
  font-size: 0.975rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.ueber-uns__list {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ueber-uns__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--sand-light);
}

.ueber-uns__list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--brand-light);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5em;
}

.ueber-uns__panel {
  background: var(--dark-surface2);
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-left: 5px solid var(--brand);
}

.ueber-uns__panel-hatch {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 16px,
    rgba(93, 181, 43, 0.1) 16px,
    rgba(93, 181, 43, 0.1) 17px
  );
}

.ueber-uns__panel-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.ueber-uns__panel-year {
  font-family: var(--font-head);
  font-size: 5.5rem;
  font-weight: 900;
  color: var(--brand);
  opacity: 0.18;
  line-height: 1;
  position: absolute;
  top: 1.5rem; left: 1.5rem;
}

.ueber-uns__panel-tag {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  background: rgba(26, 28, 20, 0.7);
  border-left: 3px solid var(--brand);
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.ueber-uns__panel-headline {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

/* ── Referenzen Teaser ── */
.referenzen {
  background: var(--cream-dark);
  padding: 7rem 0;
}

.referenzen__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.referenzen__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .referenzen__head { grid-template-columns: 1fr auto; align-items: end; }
}

.referenzen__head .section-title { color: var(--text); }
.referenzen__head .eyebrow { margin-bottom: 0.75rem; }

.referenzen__head p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 360px;
}

.referenzen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) { .referenzen__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .referenzen__grid { grid-template-columns: repeat(3, 1fr); } }

.ref-card {
  background: var(--cream);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--sand-light);
  position: relative;
  overflow: hidden;
}

.ref-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(196, 180, 154, 0.2) 20px,
    rgba(196, 180, 154, 0.2) 21px
  );
}

.ref-card__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
}

.ref-card__icon {
  width: 40px;
  height: 40px;
  background: var(--sand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.ref-card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.5;
}

.ref-card__label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ref-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.35rem;
}

/* ── CTA Band ── */
.cta-band {
  background: var(--dark-surface);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-left: 6px solid var(--brand);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-svg);
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}

.cta-band__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cta-band__inner { grid-template-columns: 1fr auto; align-items: center; }
}

.cta-band__text .section-title { color: var(--white); margin-bottom: 0.75rem; }
.cta-band__text p { color: var(--sand-light); font-size: 0.975rem; }

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-shrink: 0;
}
