/**
 * Hubseite Energieeinkauf & Ausschreibung (Template: page-energieeinkauf.php)
 * Baut auf shared-components/shared-layout auf.
 */

.page-template-page-energieeinkauf #page,
.page-template-page-energieeinkauf body,
.page-template-page-engineering #page,
.page-template-page-engineering body,
.page-template-page-energieberatung-foerdermittel #page,
.page-template-page-energieberatung-foerdermittel body {
  background-color: #e8eaed !important;
}

.page-template-page-energieeinkauf #content,
.page-template-page-energieeinkauf main.site-content,
.page-template-page-energieeinkauf .site-content.vdb-hub-energieeinkauf,
.page-template-page-engineering #content,
.page-template-page-engineering main.site-content,
.page-template-page-engineering .site-content.vdb-hub-energieeinkauf,
.page-template-page-energieberatung-foerdermittel #content,
.page-template-page-energieberatung-foerdermittel main.site-content,
.page-template-page-energieberatung-foerdermittel .site-content.vdb-hub-energieeinkauf {
  max-width: none !important;
  width: 100% !important;
}

.vdb-hub-energieeinkauf {
  padding: 0;
}

.vdb-hub-energieeinkauf__frame {
  max-width: min(1640px, 98vw);
  margin: 0 auto;
  border-left: 1px solid #dde0e4;
  border-right: 1px solid #dde0e4;
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.08), 12px 0 24px rgba(0, 0, 0, 0.08);
  background: #fafafa;
}

@media (max-width: 1920px) {
  .vdb-hub-energieeinkauf__frame {
    max-width: 100%;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.vdb-ee-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  /* Verhältnis Text/Bild wie Vorlage */
  --vdb-ee-hero-right: 64%;
  --vdb-ee-hero-left: calc(100% - var(--vdb-ee-hero-right));
  background-image: linear-gradient(90deg, rgba(250, 250, 250, 0.96) 0%, rgba(250, 250, 250, 0.92) 46%, rgba(250, 250, 250, 0.18) 76%, rgba(250, 250, 250, 0.06) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: left top;
  background-color: #f8fafb;
  min-height: clamp(420px, 46vw, 600px);
}

.vdb-ee-hero::before {
  /* Bild füllt exakt die rechten 50% (ohne Cropping) */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--vdb-ee-hero-right);
  background-image: var(--vdb-ee-hero-image);
  background-repeat: no-repeat;
  /* etwas weiter nach links "schieben" innerhalb der rechten Hälfte */
  background-position: 40% center;
  /* in der Praxis wie Vorlage: groß/flächig statt "zu klein" */
  background-size: cover;
  z-index: 0;
}

.vdb-ee-hero::after {
  /* Bild links (2–3cm) weich ausblenden */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--vdb-ee-hero-left);
  width: clamp(32px, 4vw, 72px);
  background: linear-gradient(90deg, rgba(248, 250, 251, 1) 0%, rgba(248, 250, 251, 0.92) 18%, rgba(248, 250, 251, 0.45) 55%, rgba(248, 250, 251, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.vdb-ee-hero__overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 250, 250, 0.92) 0%, rgba(250, 250, 250, 0.78) 48%, rgba(250, 250, 250, 0.22) 78%, rgba(250, 250, 250, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.vdb-ee-hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: var(--vdb-ee-hero-left) var(--vdb-ee-hero-right);
  gap: 0;
  align-items: center;
  padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4.5vw, 56px);
}

.vdb-ee-hero__title {
  margin: 0 0 0.8rem;
  line-height: 1.15;
  color: var(--vdb-primary);
}

.vdb-ee-hero__title-main {
  display: block;
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  font-weight: 700;
}

.vdb-ee-hero__title-sub {
  display: block;
  font-size: clamp(1.35rem, 2.15vw, 1.9rem);
  font-weight: 600;
  opacity: 0.95;
}

.vdb-ee-hero__desc {
  margin: 0 0 1.05rem;
  /* ca. 30% schmaler als vorher (64ch) */
  max-width: 45ch;
  color: #475962;
  line-height: 1.6;
}

.vdb-ee-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(18px, 3vw, 40px);
}

.vdb-ee-hero__title {
  margin-bottom: 1rem;
}

.vdb-ee-hero__buttons {
  margin-bottom: 1.25rem;
}

.vdb-ee-hero__inner {
  /* etwas mehr „Luft“, damit die Höhe sichtbar genutzt wird */
  padding: clamp(48px, 6vw, 84px) 0 clamp(44px, 5.5vw, 76px);
}

.vdb-ee-hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.vdb-ee-hero__benefits {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  column-gap: 10px;
  row-gap: 0;
  width: fit-content;
  margin-top: 10px;
}

.vdb-ee-hero__benefits.vdb-list--check li {
  margin-bottom: 0;
  font-weight: 600;
  color: #3e4d56;
  font-size: 0.84rem;
  padding-left: 1.15rem; /* näher an den Haken */
}

.vdb-ee-hero__benefits.vdb-list--check li::before {
  top: 0.06em;
  font-size: 0.9em;
}

/* Zwischen "Wirtschaftlich" und dem nächsten Punkt etwas mehr Luft */
.vdb-ee-hero__benefits.vdb-list--check li:nth-child(1) {
  padding-right: 8px;
}

.vdb-ee-hero__aside {
  position: absolute;
  right: 0px;
  left: auto;
  bottom: 0px;
  top: auto;
  transform: none;
  width: min(220px, calc(var(--vdb-ee-hero-right) * 0.6));
  background: #1b435e;
  border: 0;
  border-radius: 12px;
  padding: 4px 8px;
  box-shadow: 0 18px 48px rgba(17, 38, 56, 0.24), 0 4px 12px rgba(17, 38, 56, 0.08);
}

/* vdb-ee-hero__media entfernt (Bild ist Background) */

.vdb-ee-hero__checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  width: 100%;
}

.vdb-ee-hero__check {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 2px;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.vdb-ee-hero__check-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background-color: var(--vdb-secondary);
  -webkit-mask-image: var(--vdb-icon);
  mask-image: var(--vdb-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 20px 20px;
  mask-size: 20px 20px;
}

.vdb-ee-hero__check-text {
  font-weight: 400;
  color: #fff !important;
  line-height: 1.25;
  font-size: 0.9rem;
}

@media (max-width: 940px) {
  .vdb-ee-hero {
    /* Auf Mobile: Bild über volle Breite */
    --vdb-ee-hero-right: 100%;
    --vdb-ee-hero-left: 100%;
    min-height: 0;
  }

  .vdb-ee-hero::before {
    width: 100%;
    background-position: center top;
  }

  .vdb-ee-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: clamp(26px, 6vw, 40px) 0 clamp(22px, 5vw, 36px);
  }
  .vdb-ee-hero__aside {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 14px;
    text-align: left;
    border-radius: 12px;
    padding: 12px 12px;
  }
  .vdb-ee-hero::after {
    display: none;
  }
  .vdb-ee-hero__checks {
    margin-left: auto;
    margin-right: auto;
  }
  .vdb-ee-hero__buttons {
    justify-content: center;
  }
  .vdb-ee-hero__benefits {
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .vdb-ee-hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .vdb-ee-hero__text {
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .vdb-ee-hero__buttons {
    width: 100%;
  }
  .vdb-ee-hero__buttons .vdb-btn {
    width: 100%;
    text-align: center;
  }

  .vdb-ee-hero__benefits {
    width: 100%;
  }

  .vdb-ee-hero__aside {
    padding: 12px 12px;
  }
  .vdb-ee-hero__check {
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 10px 0;
  }
  .vdb-ee-hero__check-icon {
    width: 30px;
    height: 30px;
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
  }
  .vdb-ee-hero__check-text {
    font-size: 0.88rem;
  }
}

@media (max-width: 520px) {
  .vdb-ee-intro__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vdb-ee-intro__icon {
    width: 112px;
    height: 112px;
    border-radius: 999px;
  }
  .vdb-ee-intro__icon img {
    width: 64px;
    height: 64px;
  }

  .vdb-ee-vorteile__grid {
    grid-template-columns: 1fr;
  }

  .vdb-ee-zielgruppe__panel {
    padding: 14px;
    border-radius: 14px;
  }

  .vdb-ee-details-card__layout {
    grid-template-columns: 1fr;
  }
  .vdb-ee-details-card__icon {
    width: 56px;
    height: 56px;
  }
  .vdb-ee-details-card__icon img {
    width: 30px;
    height: 30px;
  }
}

/* ==========================================================================
   Mobile Fixes: Header + Prozess
   ========================================================================== */
@media (max-width: 768px) {
  /* Sticky Header sitzt zu weit unten (kommt vom Elementor Header Template) */
  .page-template-page-energieeinkauf .elementor-section[data-id="header-section"] {
    margin-top: 0 !important;
  }
  .page-template-page-engineering .elementor-section[data-id="header-section"] {
    margin-top: 0 !important;
  }
}

@media (max-width: 600px) {
  /* Prozess: nicht gequetscht – Icon oben, Text volle Breite */
  .vdb-ee-step {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid #eef1f4;
    text-align: left;
  }

  .vdb-ee-step__top {
    place-items: start;
    margin-bottom: 8px;
  }

  .vdb-ee-step__title {
    margin: 8px 0 6px;
  }

  .vdb-ee-step__text {
    max-width: none;
  }
}

/* ==========================================================================
   Intro
   ========================================================================== */
.vdb-ee-intro {
  background: #ffffff;
  padding: clamp(34px, 4.2vw, 54px) 0;
  border-top: 1px solid #eef1f4;
  border-bottom: 1px solid #eef1f4;
}

.vdb-ee-intro__inner {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 48px;
  align-items: center;
  justify-content: center;
}

.vdb-ee-intro__icon {
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(121, 212, 204, 0.14);
  display: grid;
  place-items: center;
}

.vdb-ee-intro__icon img {
  width: 110px;
  height: 110px;
}

.vdb-ee-intro .vdb-section-title {
  max-width: 56ch;
}

.vdb-ee-intro__text {
  margin: 0 0 0.75rem;
  color: #4d5f68;
  line-height: 1.6;
  max-width: 64ch; /* ~30% weniger */
}

@media (max-width: 760px) {
  .vdb-ee-intro__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .vdb-ee-intro__icon {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   Leistungen (Cards)
   ========================================================================== */
.vdb-ee-leistungen {
  padding: clamp(28px, 4vw, 54px) 0;
  background: #fafafa;
}

.vdb-ee-leistungen__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 22px);
  margin-top: 18px;
}

.vdb-ee-leistung {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e4e8ec;
  box-shadow: 0 8px 18px rgba(17, 38, 56, 0.07);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
}

.vdb-ee-leistung__header {
  display: grid !important;
  grid-template-columns: 90px 1fr !important;
  gap: 25px !important;
  align-items: start !important;
  justify-items: start !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  margin-bottom: 12px;
}

.vdb-ee-leistung__icon {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2f6f78;
  border: 0;
  justify-self: start;
}

.vdb-ee-leistung__icon img {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
}

.vdb-ee-leistung__head {
  padding-top: 2px;
}

.vdb-ee-leistung__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--vdb-primary);
  font-weight: 700;
}

.vdb-ee-leistung__no {
  color: var(--vdb-accent);
  margin-right: 0.3rem;
}

.vdb-ee-leistung__list {
  margin: 8px 0 0;
}

.vdb-ee-leistung__text {
  margin: 0;
  color: #4d5f68;
  line-height: 1.55;
}

.vdb-ee-leistung__btn {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  border-radius: 10px;
  background: #ffffff;
  border: 2px solid #d7dde3;
}

@media (max-width: 980px) {
  .vdb-ee-leistungen__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .vdb-ee-leistungen__grid,
  .vdb-ee-leistung,
  .vdb-ee-leistung__header,
  .vdb-ee-leistung__head {
    min-width: 0;
  }

  .vdb-ee-leistung__header {
    grid-template-columns: 64px 1fr !important;
    gap: 14px !important;
  }

  .vdb-ee-leistung__icon {
    width: 64px;
    height: 64px;
  }

  .vdb-ee-leistung__icon img {
    width: 34px;
    height: 34px;
  }

  .vdb-ee-leistung__title,
  .vdb-ee-leistung__text {
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   Vorteile (Icon-Row)
   ========================================================================== */
.vdb-ee-vorteile {
  background: #ffffff;
  padding: clamp(28px, 4vw, 54px) 0;
  border-top: 1px solid #eef1f4;
  border-bottom: 1px solid #eef1f4;
}

.vdb-ee-vorteile__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin-top: 16px;
}

.vdb-ee-vorteil {
  text-align: center;
  padding: 10px 6px;
}

.vdb-ee-vorteil__icon img {
  width: 46px;
  height: 46px;
}

.vdb-ee-vorteil__title {
  margin: 10px 0 6px;
  font-size: 0.98rem;
  color: var(--vdb-primary);
}

.vdb-ee-vorteil__text {
  margin: 0;
  color: #4d5f68;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .vdb-ee-vorteile__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Zielgruppe
   ========================================================================== */
.vdb-ee-zielgruppe {
  padding: clamp(28px, 4vw, 54px) 0;
  background: #fafafa;
}

.vdb-ee-zielgruppe__layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(14px, 2.6vw, 28px);
  align-items: start;
}

.vdb-ee-zielgruppe__unit {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(17, 38, 56, 0.16), 0 4px 12px rgba(17, 38, 56, 0.06);
  overflow: hidden;
  min-height: 260px;
}

.vdb-ee-zielgruppe__image {
  width: 100%;
  align-self: start;
}

.vdb-ee-zielgruppe__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vdb-ee-zielgruppe__desc {
  margin: 0 0 10px;
  color: #4d5f68;
}

.vdb-ee-zielgruppe__panel {
  background: #0f2b35;
  border-radius: 0;
  padding: 18px 18px;
  color: #fff;
  box-shadow: none;
}

.vdb-ee-zielgruppe__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.vdb-ee-zielgruppe__panel-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
}

.vdb-ee-zielgruppe__panel-icon {
  width: 22px;
  height: 22px;
  background-color: var(--vdb-secondary);
  -webkit-mask-image: var(--vdb-icon);
  mask-image: var(--vdb-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 22px 22px;
  mask-size: 22px 22px;
}

.vdb-ee-zielgruppe__panel-label {
  font-weight: 400;
  color: #fff !important;
}

@media (max-width: 980px) {
  .vdb-ee-zielgruppe__layout {
    grid-template-columns: 1fr;
  }
  .vdb-ee-zielgruppe__unit {
    grid-template-columns: 1fr;
  }
  .vdb-ee-zielgruppe__img {
    height: auto;
    max-height: 280px;
  }
}

/* ==========================================================================
   Prozess (Steps)
   ========================================================================== */
.vdb-ee-prozess {
  background: #ffffff;
  padding: clamp(28px, 4vw, 54px) 0;
  border-top: 1px solid #eef1f4;
  border-bottom: 1px solid #eef1f4;
}

.vdb-ee-prozess__steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  align-items: start;
  position: relative;
}

.vdb-ee-step {
  text-align: center;
  position: relative;
}

.vdb-ee-step__top {
  display: grid;
  place-items: center;
  position: relative;
}

.vdb-ee-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(50% + 44px);
  right: calc(-50% + 44px);
  top: 31px;
  border-top: 2px dotted rgba(9, 28, 38, 0.28);
}

.vdb-ee-step:not(:last-child)::before {
  content: none;
}

.vdb-ee-step__icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: rgba(121, 212, 204, 0.18);
  border: 1px solid rgba(38, 57, 73, 0.1);
  display: grid;
  place-items: center;
  position: relative;
}

.vdb-ee-step__icon img {
  width: 30px;
  height: 30px;
}

.vdb-ee-step__badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #091c26;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  position: absolute;
  top: -10px;
  left: -10px;
  box-shadow: 0 10px 22px rgba(17, 38, 56, 0.22);
}

.vdb-ee-step__title {
  margin: 12px 0 6px;
  color: var(--vdb-primary);
  font-size: 0.98rem;
  line-height: 1.25;
}

.vdb-ee-step__text {
  margin: 0;
  color: #4d5f68;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  /* Prozess: wie Mobile (≤600) – Icon oben, Text volle Breite */
  .vdb-ee-prozess__steps {
    display: block !important;
  }

  .vdb-ee-step {
    display: block !important;
    padding: 18px 0 !important;
    text-align: left !important;
    border-bottom: 1px solid #eef1f4;
  }

  .vdb-ee-step:last-child {
    border-bottom: 0;
  }

  .vdb-ee-step__top {
    place-items: start !important;
    margin-bottom: 10px;
  }

  .vdb-ee-step:not(:last-child)::after,
  .vdb-ee-step:not(:last-child)::before {
    display: none;
  }

  .vdb-ee-step__text {
    max-width: none !important;
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* ==========================================================================
   Details
   ========================================================================== */
.vdb-ee-details {
  padding: clamp(28px, 4vw, 54px) 0;
  background: #fafafa;
}

.vdb-ee-details__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 22px);
  margin-top: 16px;
}

.vdb-ee-details-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e4e8ec;
  box-shadow: 0 10px 22px rgba(17, 38, 56, 0.08);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.vdb-ee-details-card__layout {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: start;
}

.vdb-ee-details-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #2f6f78;
  border: 0;
  display: grid;
  place-items: center;
}

.vdb-ee-details-card__icon img {
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
}

.vdb-ee-details-card__title {
  margin: 0;
  color: var(--vdb-primary);
  font-size: 1.15rem;
}

.vdb-ee-details-card__text {
  margin: 0 0 12px;
  color: #4d5f68;
  line-height: 1.6;
}

.vdb-ee-details-card__btn {
  align-self: flex-start;
}

@media (max-width: 860px) {
  .vdb-ee-details__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Prefooter CTA (über Footer) – wie Vorlage
   ========================================================================== */
.vdb-ee-prefooter {
  background: #0f2b35;
  color: #ffffff;
  padding: clamp(26px, 4vw, 52px) 0;
  overflow: hidden;
}

.vdb-ee-prefooter,
.vdb-ee-prefooter * {
  /* schützt gegen globale div/span Farb-Overrides in custom.css */
  color: #ffffff !important;
}

.vdb-ee-prefooter__inner {
  position: relative;
  display: grid;
  /* Aufbau wie Vorlage: Text links, CTA/Meta mittig, Illustration als 3. Spalte */
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px) minmax(120px, 220px);
  gap: clamp(16px, 3vw, 40px);
  align-items: end;
  min-height: 132px;
}

.vdb-ee-prefooter__left {
  max-width: 64ch;
  align-self: end;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.vdb-ee-prefooter__eyebrow {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  opacity: 0.9;
  margin: 0 0 6px;
}

.vdb-ee-prefooter__center {
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  align-self: end;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 14px; /* mittleren Block etwas höher ziehen */
}

.vdb-ee-prefooter__title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  line-height: 1.2;
}

.vdb-ee-prefooter__desc {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.86) !important;
  line-height: 1.6;
  max-width: 76ch;
}

.vdb-ee-prefooter__actions {
  /* Button etwas höher über der Meta-Zeile */
  margin: 0 0 9px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.vdb-ee-prefooter__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: flex-start;
  align-items: center;
  column-gap: 18px;
  row-gap: 0;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-top: 35px; /* Meta-Zeile sitzt immer unten */
}

.vdb-ee-prefooter__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.vdb-ee-prefooter__meta-icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.vdb-ee-prefooter__art {
  position: relative;
  justify-self: end;
  align-self: end;
  pointer-events: none;
  opacity: 0.45;
  margin-left: 8px;
}

.vdb-ee-prefooter__art img {
  width: min(180px, 16vw);
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.65;
}

/* Prefooter Variante: Energieberatung */
.vdb-prefooter--energieberatung .vdb-ee-prefooter__inner {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px) minmax(120px, 220px);
  align-items: end;
}

.vdb-prefooter--energieberatung .vdb-ee-prefooter__left {
  justify-content: flex-end;
}

.vdb-prefooter--energieberatung .vdb-ee-prefooter__actions {
  margin-top: auto;
  margin-bottom: 0;
  gap: 10px;
}

.vdb-prefooter--energieberatung .vdb-ee-prefooter__center {
  justify-self: center;
  align-items: center;
  text-align: center;
  padding-bottom: 0;
}

.vdb-prefooter--energieberatung .vdb-ee-prefooter__meta {
  grid-template-columns: 1fr;
  justify-content: center;
  row-gap: 10px;
  margin-top: 0;
}

.vdb-prefooter--energieberatung .vdb-ee-prefooter__meta-item {
  white-space: normal;
  justify-content: center;
}

.vdb-prefooter--energieberatung .vdb-ee-prefooter__actions .vdb-btn--secondary {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--vdb-primary) !important;
}

.vdb-prefooter--energieberatung .vdb-ee-prefooter__actions .vdb-btn--secondary:hover,
.vdb-prefooter--energieberatung .vdb-ee-prefooter__actions .vdb-btn--secondary:focus-visible {
  background: #f4f6f8 !important;
  border-color: #f4f6f8 !important;
  color: var(--vdb-primary) !important;
}

@media (max-width: 1300px) {
  /* Energieberatung-Variante ist spezifischer als die Basisregel -> hier explizit 1 Spalte erzwingen */
  .vdb-prefooter--energieberatung .vdb-ee-prefooter__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .vdb-ee-prefooter__inner {
    grid-template-columns: 1fr;
  }
  .vdb-ee-prefooter__center {
    align-items: flex-start;
    text-align: left;
  }
  .vdb-ee-prefooter__actions {
    justify-content: flex-start;
  }
  .vdb-ee-prefooter__meta {
    justify-content: flex-start;
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .vdb-ee-prefooter__art {
    position: static;
    opacity: 0.35;
    margin-top: 12px;
  }

  /* Energieberatung (Mobile): Text/Buttons volle Breite, Meta unterhalb ohne Überlappung */
  .vdb-prefooter--energieberatung .vdb-ee-prefooter__left {
    max-width: none;
    width: 100%;
  }

  .vdb-prefooter--energieberatung .vdb-ee-prefooter__title,
  .vdb-prefooter--energieberatung .vdb-ee-prefooter__desc {
    max-width: none;
    width: 100%;
  }

  .vdb-prefooter--energieberatung .vdb-ee-prefooter__center {
    justify-self: stretch;
    align-items: stretch;
    text-align: left;
    width: 100%;
  }

  .vdb-prefooter--energieberatung .vdb-ee-prefooter__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .vdb-prefooter--energieberatung .vdb-ee-prefooter__actions .vdb-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .vdb-prefooter--energieberatung .vdb-ee-prefooter__meta {
    width: 100%;
    margin-top: 10px;
  }

  .vdb-prefooter--energieberatung .vdb-ee-prefooter__meta-item {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Mobile Hotfix: Prozess-Sektion (muss NACH Basisregeln kommen)
   ========================================================================== */
@media (max-width: 600px) {
  .vdb-ee-prozess .vdb-ee-prozess__steps {
    display: block !important;
  }

  .vdb-ee-prozess .vdb-ee-step {
    display: block !important;
    padding: 18px 0 !important;
    text-align: left !important;
    border-bottom: 1px solid #eef1f4;
  }

  .vdb-ee-prozess .vdb-ee-step__top {
    place-items: start !important;
    margin-bottom: 10px;
  }

  .vdb-ee-prozess .vdb-ee-step__icon {
    width: 56px;
    height: 56px;
  }

  .vdb-ee-prozess .vdb-ee-step__icon img {
    width: 28px;
    height: 28px;
  }

  .vdb-ee-prozess .vdb-ee-step__title {
    margin: 8px 0 6px !important;
  }

  .vdb-ee-prozess .vdb-ee-step__text {
    max-width: none !important;
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* ==========================================================================
   Engineering Hub – zusätzliche Sections (Template: page-engineering.php)
   ========================================================================== */
.vdb-eng-leistungen {
  padding: clamp(28px, 4vw, 54px) 0;
  background: #ffffff;
  border-top: 1px solid #eef1f4;
  border-bottom: 1px solid #eef1f4;
}

.vdb-eng-leistungen__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 16px);
  margin-top: 18px;
}

.vdb-eng-leistung {
  background: #ffffff;
  border: 1px solid #e4e8ec;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(17, 38, 56, 0.06);
  display: flex;
  flex-direction: column;
}

.vdb-eng-leistung__media {
  position: relative;
  background: #ffffff;
  height: 200px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #e4e8ec;
}

.vdb-eng-leistung__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.vdb-eng-leistung__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--vdb-secondary);
  color: #091c26;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.vdb-eng-leistung__title {
  margin: 12px 12px 8px;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--vdb-primary);
  font-weight: 800;
  min-height: 2.5em; /* 2 Zeilen @ line-height 1.25 */
}

.vdb-eng-leistung__text {
  margin: 0 12px 10px;
  color: #4d5f68;
  font-size: 0.76rem;
  line-height: 1.45;
  min-height: calc(8.7em + 20px); /* 6 Zeilen + etwas Luft */
}

.vdb-eng-leistung__list {
  margin: 0 12px 12px;
}

.vdb-eng-leistung__list.vdb-list--check li {
  font-size: 0.82rem;
  line-height: 1.35;
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

.vdb-eng-leistung__list.vdb-list--check li::before {
  font-size: 0.86em;
}

.vdb-eng-leistung__cta {
  margin: auto 12px 12px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.vdb-eng-leistung--highlight {
  background: #fff6ea;
  border-color: rgba(239, 153, 74, 0.38);
}

.vdb-eng-leistung--highlight .vdb-eng-leistung__media {
  background: #ffffff;
}

.vdb-eng-leistung--highlight .vdb-eng-leistung__cta {
  font-size: 0.82rem;
  background: #fff6ea;
  border-color: rgba(239, 153, 74, 0.38);
}

.vdb-eng-leistung--highlight .vdb-eng-leistung__cta:hover {
  background: #ffe9cf;
  border-color: rgba(239, 153, 74, 0.5);
}

@media (max-width: 1200px) {
  .vdb-eng-leistungen__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .vdb-eng-leistungen__grid {
    grid-template-columns: 1fr;
  }

  /* Engineering (Mobile): Haken näher an Text + mehr Abstand Bild->Überschrift */
  .page-template-page-engineering .vdb-eng-leistung__list.vdb-list--check li {
    padding-left: 1.4rem; /* vorher 1.9rem (shared) */
  }

  .page-template-page-engineering .vdb-eng-leistung__list.vdb-list--check li::before {
    top: 0.08em;
  }

  /* Sobald 1 Kachel pro Zeile: keine künstliche Kartenhöhe */
  .vdb-eng-leistung__text {
    min-height: 0 !important;
  }

  .page-template-page-engineering .vdb-eng-leistung__title {
    margin-top: 22px; /* vorher 12px -> 10px tiefer */
  }
}

.vdb-eng-pm {
  padding: clamp(28px, 4vw, 54px) 0;
  background: #fafafa;
  --vdb-eng-pm-text-size: 0.82rem;
}

.vdb-eng-pm__lead {
  margin: 8px auto 0;
  max-width: 92ch;
  color: #4d5f68;
}

.vdb-eng-pm__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(14px, 2.6vw, 28px);
  align-items: stretch;
}

.vdb-eng-pm__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2.2vw, 22px);
}

.vdb-eng-pm-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e4e8ec;
  box-shadow: 0 10px 22px rgba(17, 38, 56, 0.08);
  padding: 18px;
}

.vdb-eng-pm-card__title {
  margin: 0 0 10px;
  color: var(--vdb-primary);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.vdb-eng-pm-card__desc {
  margin: 0 0 22px;
  color: #4d5f68;
  font-size: var(--vdb-eng-pm-text-size);
  line-height: 1.45;
  max-width: 70ch;
}

.vdb-eng-pm-card__list {
  margin: 0;
}

.vdb-eng-pm-card__list.vdb-list--check li {
  padding-left: 1.35rem;
  font-size: var(--vdb-eng-pm-text-size);
}

.vdb-eng-pm-card__list.vdb-list--check li::before {
  top: 0.05em;
}

.vdb-eng-pm__media {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e4e8ec;
  box-shadow: 0 18px 48px rgba(17, 38, 56, 0.14);
}

.vdb-eng-pm__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .vdb-eng-pm__grid {
    grid-template-columns: 1fr;
  }
  .vdb-eng-pm__cards {
    grid-template-columns: 1fr;
  }
  .vdb-eng-pm__media {
    max-height: 320px;
  }
}

/* Engineering Prozess: Titel auf 1 Zeile (Desktop) */
.vdb-eng-prozess #vdb-eng-prozess-title {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  white-space: nowrap;
  font-weight: 800;
  margin-bottom: 18px;
}

.vdb-eng-prozess .vdb-ee-prozess__steps {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .vdb-eng-prozess #vdb-eng-prozess-title {
    white-space: normal;
  }
}

/* Compact Prozess (z.B. Energieberatung): Titel/Steps wie Engineering-Variante */
.vdb-prozess--compact #vdb-ee-prozess-title {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  white-space: nowrap;
  font-weight: 800;
  margin-bottom: 18px;
}

.vdb-prozess--compact .vdb-ee-prozess__steps {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .vdb-prozess--compact #vdb-ee-prozess-title {
    white-space: normal;
  }
}

.vdb-prozess--compact .vdb-ee-step__title {
  font-weight: 800;
}

.vdb-prozess--compact .vdb-ee-step__text {
  font-size: 0.76rem;
}

/* Engineering Vorteile: Titel fett + mehr Abstand */
.page-template-page-engineering #vdb-ee-vorteile-title {
  font-weight: 800;
  margin-bottom: 18px;
}

.page-template-page-engineering .vdb-ee-vorteil__title {
  font-weight: 800;
}

.page-template-page-engineering .vdb-ee-vorteil__text {
  font-size: 0.76rem;
}

/* Engineering Prozess: Step-Titel/Text wie Vorlage (kleiner + Titel fett) */
.page-template-page-engineering .vdb-eng-prozess .vdb-ee-step__title {
  font-weight: 800;
}

.page-template-page-engineering .vdb-eng-prozess .vdb-ee-step__text {
  font-size: 0.76rem;
}

