/* ========== Über uns Hero ========== */

#ueber-uns-hero {
    display: flex;
    align-items: flex-end;

    min-height: 24rem;
    padding: 3.5rem 0;

    background-image:
        linear-gradient(
            rgba(20, 20, 18, 0.62),
            rgba(20, 20, 18, 0.7)
        ),
        url("../img/hero-about.avif");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#ueber-uns-hero-container {
    width: min(90%, 76rem);
    margin: 0 auto;
}

#ueber-uns-hero h1 {
    margin: 0.8rem 0 0;

    color: #ffffff;
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.88;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    #ueber-uns-hero {
        min-height: 15rem;
        padding: 2.5rem 0;
    }
}

/* *========= GESCHICHTE ========= */

#geschichte {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background-color: var(--background);
}

#geschichte-container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 6rem);
  width: min(90%, 76rem);
  margin: 0 auto;
}

#geschichte-content {
  max-width: 34rem;
}

#geschichte-content h2 {
  margin: 1rem 0 1.8rem;
  font-size: clamp(2.7rem, 4vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

#geschichte-content p {
  margin: 0 0 1.25rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
}

#geschichte-visual {
  min-width: 0;
}

#geschichte-img {
  aspect-ratio: 2.15 / 1;
  margin: 0;
  overflow: hidden;
}

#geschichte-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#geschichte-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
}

.geschichte-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 5.3rem;
  padding: 1rem;
  margin: 0;
  background-color: var(--muted);
  text-align: center;
}

.geschichte-stat dt {
  order: 2;
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.geschichte-stat dd {
  order: 1;
  margin: 0;
  color: var(--accent);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 850px) {
  #geschichte-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  #geschichte-content {
    max-width: 42rem;
  }
}

@media (max-width: 430px) {
  #geschichte-stats {
    gap: 0.7rem;
  }

  .geschichte-stat {
    min-height: 5rem;
    padding: 0.8rem;
  }

  .geschichte-stat dt {
    font-size: 0.6rem;
  }
}

/* *========== UNSERE WERTE ========== */

#werte {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background-color: var(--foreground);
}

#werte-container {
  width: min(90%, 76rem);
  margin: 0 auto;
}

#werte h2 {
  margin: 1rem 0 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 4vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

#werte-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.wert-card {
  min-height: 8.7rem;
  padding: clamp(1.8rem, 3vw, 2.5rem);

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  background-color: transparent;
  transition: background-color 0.2s ease;
}

.wert-card:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.wert-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.wert-card h3 {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.wert-card p {
  max-width: 28rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

/* Der Hover wird nur auf Geräten mit echter Maus aktiviert. */
@media (hover: hover) {
  .wert-card:hover {
    background-color: rgba(255, 255, 255, 0.14);
  }
}

/* ========== MOBIL ========== */

@media (max-width: 700px) {
  #werte-grid {
    grid-template-columns: 1fr;
  }

  .wert-card,
  .wert-card:nth-child(odd) {
    border-right: 0;
  }

  .wert-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .wert-card:last-child {
    border-bottom: 0;
  }
}

/* *========== FÜHRUNGSTEAM ========== */

#team {
  padding: clamp(5rem, 8vw, 7rem) 0;
  background-color: var(--muted);
}

#team-container {
  width: min(90%, 76rem);
  margin: 0 auto;
}

#team h2 {
  margin: 1rem 0 0;
  font-size: clamp(2.7rem, 4vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

#team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.team-card {
  min-width: 0;
  background-color: var(--card);
}

.team-card-image {
  aspect-ratio: 1.7 / 1;
  margin: 0;
  overflow: hidden;
}

.team-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;

  /* Bild startet normal und zoomt erst beim Hover */
  transform: scale(1);
  transition: transform 0.35s ease;
}


.team-card-content {
  padding: clamp(1.6rem, 3vw, 2.2rem);
}

.team-card-content h3 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.25rem);
  line-height: 1;
  text-transform: uppercase;
}

.team-card-role {
  margin: 0.45rem 0 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-card-content > p:last-child {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Zoom nur mit echter Maus, nicht auf Touch-Geräten */
@media (hover: hover) and (pointer: fine) {
  .team-card-image:hover img {
    transform: scale(1.055);
  }
}

/* ========== MOBIL ========== */

@media (max-width: 700px) {
  #team-grid {
    grid-template-columns: 1fr;
    max-width: 34rem;
  }

  .team-card-image {
    aspect-ratio: 4 / 3;
  }
}