/* MunichTech EXPO — KiB / STMELF mandatory funding notice */

.mte-kib-funding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: center;
}

.mte-kib-funding__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  background: var(--mte-logo-card, #ffffff);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mte-kib-funding__logo-wrap:hover,
.mte-kib-funding__logo-wrap:focus-visible {
  box-shadow: 0 6px 22px rgba(0, 200, 255, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.mte-kib-funding__logo-wrap:focus-visible {
  outline: 2px solid var(--mte-accent, #00c8ff);
  outline-offset: 3px;
}

.mte-kib-funding__logo {
  display: block;
  width: min(100%, 20rem);
  height: auto;
  max-height: 3.25rem;
  object-fit: contain;
}

.mte-kib-funding__text {
  margin: 0;
  max-width: 42rem;
  color: var(--mte-muted, #8ea4c8);
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* Global footer — above legal bar */
footer.mte-site-footer .mte-kib-funding--footer,
footer.mte-injected-footer .mte-kib-funding--footer {
  margin: 0 auto 1.25rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  footer.mte-site-footer .mte-kib-funding--footer,
  footer.mte-injected-footer .mte-kib-funding--footer {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: 1.15rem;
    padding-top: 1.35rem;
  }

  footer.mte-site-footer .mte-kib-funding--footer .mte-kib-funding__logo-wrap,
  footer.mte-injected-footer .mte-kib-funding--footer .mte-kib-funding__logo-wrap {
    flex: 0 0 auto;
  }

  footer.mte-site-footer .mte-kib-funding--footer .mte-kib-funding__text,
  footer.mte-injected-footer .mte-kib-funding--footer .mte-kib-funding__text {
    flex: 1 1 auto;
    max-width: 34rem;
    align-self: center;
  }
}

/* In-page blocks (about, autumn edition, newsroom, partners) */
.mte-kib-funding--page {
  margin: 1.75rem auto 0;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: rgba(8, 24, 48, 0.72);
  border: 1px solid var(--mte-card-border, rgba(0, 200, 255, 0.18));
  box-shadow: 0 4px 24px rgba(0, 200, 255, 0.06);
}

@media (min-width: 768px) {
  .mte-kib-funding--page {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 1.35rem;
    max-width: 52rem;
  }

  .mte-kib-funding--page .mte-kib-funding__text {
    align-self: center;
  }
}

.mte-kib-funding--inline {
  margin-top: 1.25rem;
}

.mte-eco-logos .mte-kib-funding--partners {
  margin: 2rem auto 0;
}

.mte-about-editions .mte-kib-funding--page {
  margin-top: 1.5rem;
}

.mte-ev-hero + .mte-kib-funding--page {
  margin: -0.5rem auto 0;
  max-width: min(52rem, calc(100% - 3rem));
}
