/* ==========================================================================
   layout.css — Grid, Container, Sektionen
   ========================================================================== */

.container {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--section-spacing);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--tight {
  padding-block: 0 var(--section-spacing);
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* --- Intro-Block (Wer wir sind / Dienstleistungen) --- */
.intro-block {
  max-width: 820px;
}

.intro-block h1,
.intro-block h2 {
  margin-bottom: 1.5rem;
}

.usp-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.usp-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.usp-list__icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  fill: var(--color-accent);
}

.usp-list span:last-child {
  font-weight: 700;
  font-size: 1.0625rem;
}

/* --- Vollbreites Bild --- */
.full-image {
  width: 100%;
  height: auto;
}

/* --- Grid-Systeme --- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
  .grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --fs-h1: 2.25rem;
    --fs-h2: 1.75rem;
    --section-spacing: 3.5rem;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: 1fr;
  }
}

/* --- Hero --- */
/* --- Startseiten-Hero: Vollbild (Drohnenaufnahme) mit Text-Overlay --- */
/* Volle Viewport-Höhe: Der Header liegt transparent darüber. */
.hero-full {
  position: relative;
  height: 100vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-full__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-full__media img,
.hero-full__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Kein Autoplay-Video, wenn der Nutzer reduzierte Bewegung bevorzugt —
   das Poster-Bild bleibt sichtbar. */
@media (prefers-reduced-motion: reduce) {
  .hero-full__media video {
    display: none;
  }

  .hero-full__media {
    background-image: url("../assets/img/hero-home-poster.webp");
    background-size: cover;
    background-position: center;
  }
}

.hero-full__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 42, 71, 0.55) 0%, rgba(14, 42, 71, 0.25) 45%, rgba(14, 42, 71, 0.6) 100%),
    linear-gradient(120deg, rgba(158, 27, 38, 0.65) 0%, rgba(158, 27, 38, 0.25) 55%, rgba(158, 27, 38, 0) 85%);
}

/* Hero nutzt die volle Fensterbreite, damit der Text wirklich im rechten
   Drittel sitzt und nicht vom zentrierten Container eingefangen wird. */
.hero-full > .container {
  max-width: none;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
  width: 100%;
}

.hero-full__content {
  position: relative;
  z-index: 1;
  width: min(38%, 560px);
  margin-left: auto;
  padding-top: var(--header-height);
}

@media (max-width: 1024px) {
  .hero-full__content {
    width: min(60%, 560px);
  }
}

@media (max-width: 768px) {
  .hero-full__content {
    width: 100%;
    margin-left: 0;
  }
}

.hero-full__content h1,
.hero-full__content p {
  color: var(--color-white);
}

.hero-full__content p {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .hero-full {
    height: auto;
    min-height: 560px;
    padding-block: 4rem;
  }
}

/* --- Standard-Hero (Unterseiten): Bild in normaler Höhe --- */
.hero--image {
  position: relative;
  padding-block: 0;
}

.hero--image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding-block: 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

/* --- Footer-Layout --- */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-block: 3.5rem 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}
