/* ================================================================
   EBHARDT – ÜBER UNS
   Seitenspezifisches Stylesheet
   ================================================================ */

/* ----------------------------------------------------------------
   ORANGER BEREICH (Hero + Geschichte + Zitat)
   ---------------------------------------------------------------- */
.ue-orange {
  background-color: #ea9220;
}

/* ----------------------------------------------------------------
   HERO TITEL
   ---------------------------------------------------------------- */
.ue-hero {
  padding: 10rem 3rem 2rem;
  display: flex;
  justify-content: center;
}

.ue-hero__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2.8rem, 6vw, 6rem);
  color: #22404d;
  text-transform: uppercase;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}

.ue-hero__line-left {
  text-align: left;
}

.ue-hero__title-row {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding-left: 8%;
  white-space: nowrap;
}

.ue-hero__line-bottom {
  text-align: left;
}

.ue-hero__icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  color: #22404d;
}

/* ----------------------------------------------------------------
   TEXTBLÖCKE: UNSERE GESCHICHTE / WIR VERLEIHEN
   ---------------------------------------------------------------- */
.ue-geschichte {
  padding: 2rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 90%;
  margin: 0 auto 0 5%;
}

.ue-geschichte__label {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2rem;
  color: #22404d;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.ue-geschichte__text {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.8rem);
  color: #22404d;
  line-height: 1.7;
  padding-left: 8rem;
}

/* ----------------------------------------------------------------
   ZITAT: VIELSEITIG, HOCHWERTIG & ZUKUNFTSORIENTIERT
   ---------------------------------------------------------------- */
.ue-zitat {
  padding: 4rem 3rem 5rem;
  text-align: center;
}

.ue-zitat__text {
  font-family: var(--font-light);
  font-weight: 200;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  color: #22404d;
  text-transform: uppercase;
  line-height: 1.2;
}

.ue-zitat__highlight {
  font-family: var(--font-headline);
  font-weight: 700;
  font-style: normal;
  display: block;
  font-size: 1.15em;
}

/* ----------------------------------------------------------------
   LEISTUNGSKARTEN
   ---------------------------------------------------------------- */
.ue-karte {
  display: flex;
  align-items: center;
  gap: 4rem; /* Einheitlicher Abstand Bild ↔ Text */
  min-height: 75vh;
  padding: 5rem 5rem 5rem 10rem;
}

.ue-karte__image-wrap {
  aspect-ratio: 3 / 4; /* Hochformat */
  border-radius: 12px;
  overflow: hidden;
  width: 35%;
}

.ue-karte__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.ue-karte__image-wrap:hover img {
  transform: scale(1.03);
}

.ue-karte__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  margin: 0 auto;
  align-items: center;
}

/* Intro-Text: linksbündig, mehrere Zeilen */
.ue-karte__intro {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.65;
  text-align: left;
  width: 100%;
  margin-bottom: 2rem;
}

.ue-karte__heading {
  font-family: var(--font-headline);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0.3rem 0;
  text-align: left;
  width: 100%;
  font-size: 1rem; /* Startwert – wird per JS überschrieben */
  white-space: nowrap; /* Kein Umbruch damit JS die Breite messen kann */
}

/* Detail-Text: rechtsbündig, mehrere Zeilen */
.ue-karte__text {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.65;
  text-align: right;
  width: 100%;
  margin-top: 2rem;
}

.ue-karte__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-top: 0.75rem;
  transition: gap 0.3s ease;
  text-align: left;
}

.ue-karte__link:hover {
  gap: 1.1rem;
}

.ue-karte-left {
  padding: 5rem 10rem 5rem 5rem;
}

.ue-karte--reverse .ue-karte__content {
  margin-left: 0;
  margin-right: 0;
}

.ue-karte__link-wrap {
  text-align: center;
  margin-top: 1.8rem;
}

.ue-karte__link-wrap p {
  font-family: var(--font-headline) !important;
  font-weight: 900 !important;
  font-size: 1.5rem;
}

.ue-karte__link-wrap .arrow {
  right: unset !important;
  bottom: 13px;
}

/* ----------------------------------------------------------------
   KARTEN – individuelle Farben
   ---------------------------------------------------------------- */
.ue-karte--schule {
  background-color: #d4d8c7;
}
.ue-karte--schule .ue-karte__intro,
.ue-karte--schule .ue-karte__text,
.ue-karte--schule .ue-karte__heading,
.ue-karte--schule .ue-karte__link {
  color: #1f1f1f;
}
.ue-karte--schule .arrow::before {
  background-color: #1f1f1f;
}
.ue-karte--schule .arrow::after {
  border-color: #1f1f1f;
}

.ue-karte--kiga {
  background-color: #f0be99;
}
.ue-karte--kiga .ue-karte__intro,
.ue-karte--kiga .ue-karte__text,
.ue-karte--kiga .ue-karte__heading,
.ue-karte--kiga .ue-karte__link {
  color: #231d1f;
}
.ue-karte--kiga .arrow::before {
  background-color: #231d1f;
}
.ue-karte--kiga .arrow::after {
  border-color: #231d1f;
}

.ue-karte--tafel {
  background-color: #b6b2c0;
}
.ue-karte--tafel .ue-karte__intro,
.ue-karte--tafel .ue-karte__text,
.ue-karte--tafel .ue-karte__heading,
.ue-karte--tafel .ue-karte__link {
  color: #5c3816;
}
.ue-karte--tafel .arrow::before {
  background-color: #5c3816;
}
.ue-karte--tafel .arrow::after {
  border-color: #5c3816;
}

.ue-karte--druck {
  background-color: #f7ede1;
}
.ue-karte--druck .ue-karte__intro,
.ue-karte--druck .ue-karte__text,
.ue-karte--druck .ue-karte__heading,
.ue-karte--druck .ue-karte__link {
  color: #2a2a2a;
}
.ue-karte--druck .arrow::before {
  background-color: #2a2a2a;
}
.ue-karte--druck .arrow::after {
  border-color: #2a2a2a;
}

/* ----------------------------------------------------------------
   ANIMATIONEN
   ---------------------------------------------------------------- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

/* ----------------------------------------------------------------
   NAV – Farbe für orangene Seite
   ---------------------------------------------------------------- */

.ue-orange-nav .site-nav__menu-btn {
  border-color: #22404d;
  color: #22404d;
}

.ue-orange-nav .site-nav__menu-btn:hover {
  background: #22404d;
  color: #ea9220;
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1200px) {
  .ue-geschichte__text {
    padding-left: 5rem;
  }
  .ue-karte__intro {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .ue-karte__text {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .ue-karte {
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  }
  .ue-karte-left {
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  }

  .ue-karte__image-wrap {
    width: 40%;
  }
  .ue-geschichte__label {
    font-size: 1.5rem;
  }
}

@media (max-width: 750px) {
  .ue-karte__intro {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  .ue-karte__text {
    font-size: 1rem;
    margin-top: 1rem;
    text-align: center;
  }
  .ue-karte,
  .ue-karte-left {
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  /* Bild immer zuerst, Text immer danach */
  .ue-karte__image-wrap {
    order: 1;
    width: 100vw;
    height: 20em;
    border-radius: 0;
  }

  .ue-karte__content {
    order: 2;
    padding: 3em;
    width: 100%;
  }

  .ue-karte__heading {
    font-size: 1.5rem !important;
    text-align: center;
  }

  .ue-karte__link-wrap .arrow {
    right: unset !important;
    bottom: 57px;
  }

  .ue-geschichte__label {
    font-size: 1.2rem;
  }
}

@media (max-width: 700px) {
  .ue-geschichte__text {
    padding-left: 0;
  }
  .ue-hero__title {
    font-size: 2em;
  }
  .ue-zitat__highlight {
    font-size: 0.8em;
  }
}

@media (max-width: 700px) {
  .ue-geschichte__text {
    padding-left: 0;
  }
  .ue-hero__title {
    font-size: 1.8em;
  }
  .ue-zitat__text {
    font-size: 2em;
  }
  .ue-zitat__highlight {
  }
  .ue-karte__heading {
    font-size: 1.3rem !important;
  }

  .ue-geschichte__label {
    font-size: 1rem;
  }
}

/* Nav Hintergrund */
.ue-orange-nav {
  background-color: #ea9220;
}
