/* Matilde global site footer – intentionally isolated from theme styles. */
.mrv-site-footer,
.mrv-site-footer * {
  box-sizing: border-box;
}

.mrv-site-footer {
  --mrv-footer-deep: #064f50;
  --mrv-footer-dark: #043f40;
  --mrv-footer-mid: #0b6969;
  --mrv-footer-mint: #d9f1ed;
  --mrv-footer-line: rgba(219, 244, 240, .22);
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin: clamp(3.5rem, 7vw, 7rem) 0 0 -50vw;
  overflow: hidden;
  color: #f6fbfa;
  background:
    radial-gradient(circle at 3% 8%, rgba(73, 154, 151, .36), transparent 25%),
    radial-gradient(circle at 96% 98%, rgba(71, 151, 149, .35), transparent 28%),
    linear-gradient(135deg, var(--mrv-footer-deep) 0%, var(--mrv-footer-dark) 54%, #075859 100%);
  border-radius: 38px 38px 0 0;
  font-family: inherit;
  isolation: isolate;
}

.mrv-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  z-index: -1;
}

.mrv-site-footer__decor {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(213, 241, 236, .25);
  border-radius: 44% 56% 62% 38% / 52% 45% 55% 48%;
  pointer-events: none;
}

.mrv-site-footer__decor::before,
.mrv-site-footer__decor::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: inherit;
  border-radius: inherit;
  transform: rotate(14deg);
}

.mrv-site-footer__decor::after {
  inset: 58px;
  transform: rotate(-18deg);
}

.mrv-site-footer__decor--left {
  left: -175px;
  top: -165px;
  transform: rotate(24deg);
}

.mrv-site-footer__decor--right {
  right: -190px;
  bottom: -160px;
  transform: rotate(-18deg);
}

.mrv-site-footer__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 64px, 1580px);
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6.8rem) 0 clamp(3rem, 5vw, 4.8rem);
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(220px, .8fr) minmax(180px, .62fr) minmax(300px, 1.05fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
}

.mrv-site-footer a {
  color: inherit;
  text-decoration: none;
}

.mrv-site-footer__brand-column {
  max-width: 470px;
}

.mrv-site-footer__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 74px;
  margin-bottom: 1.35rem;
}

.mrv-site-footer__brand-name {
  position: relative;
  color: #fff;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.07em;
}

.mrv-site-footer__brand-arc {
  position: absolute;
  left: -8px;
  top: -10px;
  width: 130px;
  height: 48px;
  border-top: 2px solid rgba(219, 244, 240, .65);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.mrv-site-footer__brand-column h2 {
  max-width: 14ch;
  margin: 0 0 1rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 2.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.mrv-site-footer__brand-column > p {
  max-width: 45ch;
  margin: 0;
  color: rgba(244, 252, 250, .78);
  font-size: 1rem;
  line-height: 1.7;
}

.mrv-site-footer__request {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 220px;
  margin-top: 1.75rem;
  padding: .95rem 1.15rem .95rem 1.3rem;
  border-radius: 999px;
  color: var(--mrv-footer-dark) !important;
  background: var(--mrv-footer-mint);
  border: 1px solid rgba(255, 255, 255, .34);
  font-weight: 750;
  box-shadow: 0 14px 34px rgba(0, 25, 25, .18);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.mrv-site-footer__request span:last-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(5, 79, 80, .1);
  font-size: 1.25rem;
}

.mrv-site-footer__request:hover,
.mrv-site-footer__request:focus-visible {
  transform: translateY(-2px);
  background: #effbf8;
  box-shadow: 0 18px 40px rgba(0, 25, 25, .24);
}

.mrv-site-footer__eyebrow {
  margin: .35rem 0 1.25rem;
  color: rgba(220, 244, 240, .66);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mrv-site-footer__eyebrow--legal {
  margin-top: 2.1rem;
}

.mrv-site-footer__contact {
  display: grid;
  gap: .95rem;
  margin: 0;
  font-style: normal;
}

.mrv-site-footer__contact a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  color: rgba(249, 253, 252, .9);
  font-size: .98rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.mrv-site-footer__contact a:hover,
.mrv-site-footer__contact a:focus-visible,
.mrv-site-footer__links a:hover,
.mrv-site-footer__links a:focus-visible {
  color: #fff;
}

.mrv-site-footer__contact-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--mrv-footer-line);
  border-radius: 12px;
  color: var(--mrv-footer-mint);
  background: rgba(255, 255, 255, .05);
}

.mrv-site-footer__contact-icon svg {
  width: 18px;
  height: 18px;
}

.mrv-site-footer__links {
  display: grid;
  gap: .75rem;
}

.mrv-site-footer__links a {
  position: relative;
  width: fit-content;
  color: rgba(249, 253, 252, .82);
  font-size: 1rem;
  line-height: 1.4;
}

.mrv-site-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--mrv-footer-mint);
  transition: right .2s ease;
}

.mrv-site-footer__links a:hover::after,
.mrv-site-footer__links a:focus-visible::after {
  right: 0;
}

.mrv-site-footer__links--legal {
  grid-template-columns: repeat(3, max-content);
  gap: .55rem 1rem;
}

.mrv-site-footer__links--legal a {
  font-size: .92rem;
  color: rgba(249, 253, 252, .68);
}

.mrv-site-footer__projects {
  display: grid;
  gap: .8rem;
}

.mrv-site-footer__project {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) auto auto;
  gap: .8rem;
  align-items: center;
  min-height: 82px;
  padding: .8rem .9rem;
  border: 1px solid var(--mrv-footer-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.mrv-site-footer__project:hover,
.mrv-site-footer__project:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(219, 244, 240, .45);
  background: rgba(255, 255, 255, .085);
}

.mrv-site-footer__project-logo {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 48px;
}

.mrv-site-footer__project-logo img {
  display: block;
  width: auto;
  max-width: 130px;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: .84;
}

.mrv-site-footer__project-logo--sehtraining img {
  max-width: 128px;
  max-height: 48px;
}

.mrv-site-footer__project > span:nth-child(2) {
  color: rgba(249, 253, 252, .76);
  font-size: .82rem;
}

.mrv-site-footer__project > span:last-child {
  color: var(--mrv-footer-mint);
  font-size: 1.15rem;
}

.mrv-site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.15rem;
}

.mrv-site-footer__socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--mrv-footer-line);
  border-radius: 50%;
  color: var(--mrv-footer-mint);
  background: rgba(255, 255, 255, .045);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.mrv-site-footer__socials a:hover,
.mrv-site-footer__socials a:focus-visible {
  transform: translateY(-3px);
  color: var(--mrv-footer-dark);
  background: var(--mrv-footer-mint);
}

.mrv-site-footer__socials svg {
  width: 19px;
  height: 19px;
}

.mrv-site-footer__bottom {
  position: relative;
  z-index: 1;
  width: min(100% - 64px, 1580px);
  margin: 0 auto;
  padding: 1.35rem 0 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--mrv-footer-line);
  color: rgba(237, 249, 247, .62);
  font-size: .84rem;
}

@media (max-width: 1180px) {
  .mrv-site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mrv-site-footer__brand-column {
    max-width: 580px;
  }
}

@media (max-width: 720px) {
  .mrv-site-footer {
    margin-top: 3rem;
    border-radius: 28px 28px 0 0;
  }

  .mrv-site-footer__inner,
  .mrv-site-footer__bottom {
    width: min(100% - 32px, 1580px);
  }

  .mrv-site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding-top: 3.5rem;
  }

  .mrv-site-footer__brand-column h2 {
    max-width: 13ch;
  }

  .mrv-site-footer__links--legal {
    grid-template-columns: 1fr;
  }

  .mrv-site-footer__project {
    grid-template-columns: minmax(92px, 1fr) auto auto;
  }

  .mrv-site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .mrv-site-footer__project {
    grid-template-columns: 1fr auto;
  }

  .mrv-site-footer__project > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .mrv-site-footer__project > span:last-child {
    grid-column: 2;
    grid-row: 1;
  }
}


/* Matilde 1.1.19 – echtes Website-Logo im Footer */
.mrv-site-footer__brand {
  min-height: 0;
  margin-bottom: 1.45rem;
}

.mrv-site-footer__brand-logo {
  display: block;
  width: clamp(170px, 15vw, 230px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media (max-width: 720px) {
  .mrv-site-footer__brand-logo {
    width: 185px;
  }
}

/* Matilde 1.1.21 – Weißer Trennstreifen vor dem Footer entfernen. */
body.mrv-site-footer-enabled .mrv-site-footer {
  margin-top: 0;
}

/* Das Theme reserviert nach dem eigentlichen Seiteninhalt teilweise noch
   Innenabstand. Auf Matilde-Modulseiten wird dieser leere Bereich entfernt. */
body.mrv-plugin-page .site-content,
body.mrv-plugin-page #primary,
body.mrv-plugin-page .content-area,
body.mrv-plugin-page .content-container,
body.mrv-plugin-page .site-main,
body.mrv-plugin-page main#main,
body.mrv-plugin-page .content-wrap,
body.mrv-plugin-page article.entry,
body.mrv-plugin-page .entry-content-wrap,
body.mrv-plugin-page .entry-content,
body.mrv-plugin-page .single-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Der letzte Startseitenblock soll fast direkt in den Footer übergehen. */
body.mrv-home-page .mrv-final-cta {
  margin-bottom: 0 !important;
}

@media (max-width: 720px) {
  body.mrv-site-footer-enabled .mrv-site-footer {
    margin-top: 0;
  }

  body.mrv-home-page .mrv-final-cta {
    margin-bottom: 0 !important;
  }
}


/* Kleiner Innenabstand statt sichtbarer weißer Außenkante. */
body.mrv-site-footer-enabled .mrv-site-footer__inner {
  padding-top: clamp(2.1rem, 4vw, 2.8rem);
}

@media (max-width: 720px) {
  body.mrv-site-footer-enabled .mrv-site-footer__inner {
    padding-top: 1.8rem;
  }
}


/* === Matilde 1.1.22: kleiner, farblich passender Abstand vor dem Footer === */
body.mrv-home-page .mrv-final-cta {
  margin-bottom: 14px !important;
}

/* Der kleine Zwischenraum übernimmt den hellen Matilde-Hintergrund statt Weiß. */
body.mrv-home-page .site-content,
body.mrv-home-page #primary,
body.mrv-home-page .content-area,
body.mrv-home-page .content-container,
body.mrv-home-page .site-main,
body.mrv-home-page main#main,
body.mrv-home-page .content-wrap,
body.mrv-home-page article.entry,
body.mrv-home-page .entry-content-wrap,
body.mrv-home-page .entry-content,
body.mrv-home-page .single-content {
  background-color: #f2f7f6 !important;
}

@media (max-width: 720px) {
  body.mrv-home-page .mrv-final-cta {
    margin-bottom: 10px !important;
  }
}


/* === Matilde 1.1.23: identischer Abstand vor dem Footer === */
:root {
  --mrv-footer-content-gap: 30px;
}

/* Startseite: etwas mehr Luft nach „Raum anfragen“. */
body.mrv-home-page .mrv-final-cta {
  margin-bottom: var(--mrv-footer-content-gap) !important;
}

/* Impressum sowie vorbereitete Datenschutz-/AGB-Seiten erhalten exakt
   denselben Abstand zwischen letztem Inhaltsblock und Footer. */
body.mrv-legal-page .mrv-legal-shell {
  margin-bottom: var(--mrv-footer-content-gap) !important;
}

/* Der Zwischenraum bleibt in der Matilde-Hintergrundfarbe und wird nicht weiß. */
body.mrv-home-page .site-content,
body.mrv-home-page #primary,
body.mrv-home-page .content-area,
body.mrv-home-page .content-container,
body.mrv-home-page .site-main,
body.mrv-home-page main#main,
body.mrv-home-page .content-wrap,
body.mrv-home-page article.entry,
body.mrv-home-page .entry-content-wrap,
body.mrv-home-page .entry-content,
body.mrv-home-page .single-content,
body.mrv-legal-page .site-content,
body.mrv-legal-page #primary,
body.mrv-legal-page .content-area,
body.mrv-legal-page .content-container,
body.mrv-legal-page .site-main,
body.mrv-legal-page main#main,
body.mrv-legal-page .content-wrap,
body.mrv-legal-page article.entry,
body.mrv-legal-page .entry-content-wrap,
body.mrv-legal-page .entry-content,
body.mrv-legal-page .single-content {
  background-color: #f2f7f6 !important;
}

@media (max-width: 720px) {
  :root {
    --mrv-footer-content-gap: 20px;
  }
}


/* === Matilde 1.1.24: Footer seitlich exakt am Menü ausrichten === */
/* Desktop: dieselben dynamischen Seitenabstände wie im WordPress-Menü. */
body.mrv-site-footer-enabled .mrv-site-footer__inner,
body.mrv-site-footer-enabled .mrv-site-footer__bottom {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: clamp(28px, 3.3vw, 58px) !important;
  padding-left: clamp(28px, 3.3vw, 58px) !important;
}

/* Der obere und untere Innenabstand des Footers bleiben unverändert. */
body.mrv-site-footer-enabled .mrv-site-footer__inner {
  padding-top: clamp(2.1rem, 4vw, 2.8rem) !important;
  padding-bottom: clamp(3rem, 5vw, 4.8rem) !important;
}

body.mrv-site-footer-enabled .mrv-site-footer__bottom {
  padding-top: 1.35rem !important;
  padding-bottom: 1.6rem !important;
}

@media (max-width: 860px) {
  body.mrv-site-footer-enabled .mrv-site-footer__inner,
  body.mrv-site-footer-enabled .mrv-site-footer__bottom {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  body.mrv-site-footer-enabled .mrv-site-footer__inner {
    padding-top: 1.8rem !important;
  }
}


/* === Matilde 1.1.27: kompakter, besser genutzter Desktop-Footer === */
@media (min-width: 1181px) {
  body.mrv-site-footer-enabled .mrv-site-footer__inner {
    grid-template-columns: minmax(420px, 1.22fr) minmax(235px, .68fr) minmax(180px, .48fr) minmax(330px, .9fr);
    gap: clamp(1.5rem, 2.5vw, 3rem);
    padding-top: 2.25rem !important;
    padding-bottom: 1.9rem !important;
  }

  .mrv-site-footer__brand-column {
    display: grid;
    grid-template-columns: minmax(145px, 175px) minmax(0, 1fr);
    grid-template-areas:
      "logo title"
      "copy copy"
      "button button";
    column-gap: 1.35rem;
    row-gap: .75rem;
    align-content: start;
    max-width: 560px;
  }

  .mrv-site-footer__brand {
    grid-area: logo;
    align-self: center;
    margin: 0;
  }

  .mrv-site-footer__brand-logo {
    width: 170px;
    max-height: 108px;
  }

  .mrv-site-footer__brand-column h2 {
    grid-area: title;
    align-self: center;
    max-width: 11ch;
    margin: 0;
    font-size: clamp(1.9rem, 2.15vw, 2.55rem);
    line-height: 1.03;
  }

  .mrv-site-footer__brand-column > p {
    grid-area: copy;
    max-width: 52ch;
    font-size: .96rem;
    line-height: 1.55;
  }

  .mrv-site-footer__request {
    grid-area: button;
    justify-self: start;
    min-width: 205px;
    margin-top: .25rem;
    padding: .72rem .82rem .72rem 1.1rem;
  }

  .mrv-site-footer__request span:last-child {
    width: 29px;
    height: 29px;
  }

  .mrv-site-footer__eyebrow {
    margin: .15rem 0 .8rem;
  }

  .mrv-site-footer__eyebrow--legal {
    margin-top: 1.15rem;
  }

  .mrv-site-footer__contact {
    gap: .65rem;
  }

  .mrv-site-footer__contact a {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: .65rem;
    font-size: .94rem;
    line-height: 1.4;
  }

  .mrv-site-footer__contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .mrv-site-footer__links {
    gap: .55rem;
  }

  .mrv-site-footer__links a {
    font-size: .96rem;
  }

  .mrv-site-footer__projects {
    gap: .65rem;
  }

  .mrv-site-footer__project {
    min-height: 68px;
    padding: .55rem .75rem;
    border-radius: 16px;
  }

  .mrv-site-footer__project-logo {
    height: 38px;
  }

  .mrv-site-footer__project-logo img,
  .mrv-site-footer__project-logo--sehtraining img {
    max-height: 38px;
  }

  .mrv-site-footer__socials {
    margin-top: .8rem;
  }

  .mrv-site-footer__socials a {
    width: 38px;
    height: 38px;
  }

  body.mrv-site-footer-enabled .mrv-site-footer__bottom {
    padding-top: .9rem !important;
    padding-bottom: 1rem !important;
  }
}

@media (min-width: 1181px) and (max-width: 1450px) {
  body.mrv-site-footer-enabled .mrv-site-footer__inner {
    grid-template-columns: minmax(390px, 1.12fr) minmax(215px, .68fr) minmax(165px, .48fr) minmax(300px, .86fr);
    gap: 1.4rem;
  }

  .mrv-site-footer__brand-column {
    grid-template-columns: 145px minmax(0, 1fr);
    column-gap: 1rem;
  }

  .mrv-site-footer__brand-logo {
    width: 145px;
  }

  .mrv-site-footer__brand-column h2 {
    font-size: 1.9rem;
  }
}

/* Matilde 1.1.34: Anbieterzugang im Footer klar auffindbar. */
.mrv-site-footer__provider-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 220px;
  margin-top: 1rem;
  padding: .72rem .9rem;
  border: 1px solid rgba(222, 244, 242, .25);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: #e7f7f5 !important;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.mrv-site-footer__provider-link:hover,
.mrv-site-footer__provider-link:focus-visible {
  border-color: rgba(222, 244, 242, .5);
  background: rgba(255,255,255,.1);
  transform: translateY(-1px);
}
