/* Echt & Verbunden Impressum 1.6.2 */
body.evf-legal-active {
  margin: 0 !important;
  background: #f6eef2 !important;
  color: #4b434e !important;
}

body.evf-legal-active #main-content,
body.evf-legal-active .et-l--post,
body.evf-legal-active .entry-content,
body.evf-legal-active .et_builder_inner_content {
  background: transparent !important;
}

.evfLegalShell {
  --legal-plum: #655269;
  --legal-plum-dark: #4f4054;
  --legal-rose: #b98796;
  --legal-paper: #fffdfc;
  --legal-paper-soft: #fbf7f5;
  --legal-ink: #443e47;
  --legal-muted: #6b646d;
  --legal-line: rgba(88, 72, 92, 0.13);
  width: 100%;
  padding: 42px 0 72px;
  background:
    radial-gradient(circle at 8% 5%, rgba(185,135,150,.12), transparent 26%),
    linear-gradient(180deg,#f8f1f4 0%,#fbf8f8 45%,#f5edf1 100%);
  color: var(--legal-ink);
  font-family: "Segoe UI Variable Text","Segoe UI",Arial,sans-serif;
}

.evfLegalInner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.evfLegalHero {
  display: grid;
  grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr);
  gap: 42px;
  align-items: center;
  padding: 34px 40px;
  margin: 0 0 24px;
  border: 1px solid rgba(101,82,105,.10);
  border-radius: 30px;
  background: #fffafc;
  box-shadow: 0 16px 42px rgba(70,55,74,.08);
}

.evfLegalLogoWrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
}

.evfLegalLogo {
  display: block;
  width: min(320px,100%);
  height: auto;
}

.evfLegalEyebrow {
  margin: 0 0 9px !important;
  color: #806d83 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
}

.evfLegalHero h1 {
  margin: 0 !important;
  color: var(--legal-plum-dark) !important;
  font-size: clamp(36px,4.6vw,58px) !important;
  line-height: 1.08 !important;
  font-weight: 680 !important;
  letter-spacing: -.035em !important;
}

.evfLegalHero p:last-child {
  max-width: 650px;
  margin: 17px 0 0 !important;
  color: var(--legal-muted) !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
  font-weight: 400 !important;
}

.evfLegalFacts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.evfLegalFact {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--legal-line);
  border-radius: 17px;
  background: rgba(255,255,255,.88);
}

.evfLegalFact strong {
  display: block;
  margin: 0 0 4px;
  color: #725d76;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.evfLegalFact span,
.evfLegalFact a {
  color: var(--legal-ink) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
  overflow-wrap: anywhere;
  text-decoration: none !important;
}

.evfLegalContent {
  width: 100%;
  padding: 40px 44px;
  border: 1px solid var(--legal-line);
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 40px rgba(70,55,74,.06);
  overflow: hidden;
}

/* Alte Divi und frühere Rechtsseiten Gestaltung vollständig neutralisieren. */
.evfLegalContent .et_pb_section,
.evfLegalContent .et_pb_row,
.evfLegalContent .et_pb_column,
.evfLegalContent .et_pb_module,
.evfLegalContent section,
.evfLegalContent article,
.evfLegalContent .section,
.evfLegalContent .card,
.evfLegalContent .box {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

.evfLegalContent .et_pb_row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.evfLegalContent .et_pb_column {
  margin-bottom: 0 !important;
}

.evfLegalContent > :first-child,
.evfLegalContent .et_pb_section:first-child {
  margin-top: 0 !important;
}

.evfLegalContent h1 {
  display: none !important;
}

.evfLegalContent h2 {
  max-width: 100%;
  margin: 38px 0 15px !important;
  padding: 30px 0 0 !important;
  border-top: 1px solid var(--legal-line) !important;
  color: var(--legal-plum-dark) !important;
  background: transparent !important;
  font-size: clamp(27px,3vw,37px) !important;
  line-height: 1.18 !important;
  font-weight: 680 !important;
  letter-spacing: -.025em !important;
  overflow-wrap: anywhere;
}

.evfLegalContent h2:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.evfLegalContent h3,
.evfLegalContent h4 {
  max-width: 100%;
  margin: 25px 0 9px !important;
  padding: 0 !important;
  color: #554959 !important;
  background: transparent !important;
  font-size: 21px !important;
  line-height: 1.35 !important;
  font-weight: 680 !important;
  overflow-wrap: anywhere;
}

.evfLegalContent p,
.evfLegalContent li,
.evfLegalContent td,
.evfLegalContent th,
.evfLegalContent div,
.evfLegalContent span {
  color: #5c5560 !important;
  font-size: 16px !important;
  line-height: 1.76 !important;
  font-weight: 400 !important;
  overflow-wrap: anywhere;
}

.evfLegalContent p {
  margin: 0 0 14px !important;
}

.evfLegalContent strong,
.evfLegalContent b {
  color: #413a44 !important;
  font-weight: 680 !important;
}

.evfLegalContent ul,
.evfLegalContent ol {
  margin: 8px 0 18px !important;
  padding-left: 22px !important;
}

.evfLegalContent a {
  color: #6b5670 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  overflow-wrap: anywhere;
}

.evfLegalContent a[role="button"],
.evfLegalContent .et_pb_button,
.evfLegalContent button {
  display: inline-flex !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 18px !important;
  border: 1px solid rgba(101,82,105,.24) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #604d67 !important;
  box-shadow: none !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.evfLegalContent img,
.evfLegalContent svg {
  max-width: 100% !important;
  height: auto !important;
}

.evfLegalContent hr {
  margin: 30px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--legal-line) !important;
}

.evfLegalBack {
  margin-top: 24px;
  text-align: center;
}

.evfLegalBack a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--legal-plum);
  color: #fff !important;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 650;
  text-decoration: none !important;
}

/* Alte Zahlbadge und dunkle Abschlusskarten werden per JS markiert. */
.evfLegalLegacyNumber,
.evfLegalLegacyHero,
.evfLegalLegacyContact {
  display: none !important;
}

@media screen and (max-width: 760px) {
  .evfLegalShell {
    padding: 18px 0 46px;
  }

  .evfLegalInner {
    width: calc(100% - 24px);
  }

  .evfLegalHero {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 24px 20px;
    margin-bottom: 18px;
    border-radius: 22px;
  }

  .evfLegalLogoWrap {
    justify-content: center;
  }

  .evfLegalLogo {
    width: min(270px,88%);
  }

  .evfLegalHero h1 {
    font-size: clamp(31px,9vw,40px) !important;
    text-align: center;
  }

  .evfLegalEyebrow,
  .evfLegalHero p:last-child {
    text-align: center;
  }

  .evfLegalHero p:last-child {
    font-size: 15.5px !important;
    line-height: 1.67 !important;
  }

  .evfLegalFacts {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 18px;
  }

  .evfLegalFact {
    padding: 15px 16px;
    border-radius: 14px;
  }

  .evfLegalFact span,
  .evfLegalFact a {
    font-size: 15.5px !important;
  }

  .evfLegalContent {
    padding: 24px 18px 28px;
    border-radius: 20px;
    overflow: hidden;
  }

  .evfLegalContent .et_pb_section,
  .evfLegalContent .et_pb_row,
  .evfLegalContent .et_pb_column,
  .evfLegalContent .et_pb_module,
  .evfLegalContent section,
  .evfLegalContent article {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .evfLegalContent h2 {
    margin-top: 30px !important;
    padding-top: 24px !important;
    font-size: 27px !important;
    line-height: 1.2 !important;
  }

  .evfLegalContent h3,
  .evfLegalContent h4 {
    margin-top: 22px !important;
    font-size: 19px !important;
    line-height: 1.35 !important;
  }

  .evfLegalContent p,
  .evfLegalContent li,
  .evfLegalContent td,
  .evfLegalContent th,
  .evfLegalContent div,
  .evfLegalContent span {
    font-size: 15.5px !important;
    line-height: 1.72 !important;
  }

  .evfLegalBack {
    margin-top: 18px;
  }

  .evfLegalBack a {
    width: 100%;
  }
}

@media screen and (max-width: 390px) {
  .evfLegalInner {
    width: calc(100% - 18px);
  }

  .evfLegalContent {
    padding-left: 15px;
    padding-right: 15px;
  }
}


/* 1.6.2: alte Rechtsseitenoptik endgültig neutralisieren */
.evfLegalContent,
.evfLegalContent * {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

.evfLegalContent > div,
.evfLegalContent > section,
.evfLegalContent > article {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.evfLegalContent p:empty,
.evfLegalContent div:empty,
.evfLegalContent span:empty {
  display: none !important;
}

@media screen and (max-width: 760px) {
  .evfLegalInner {
    width: calc(100% - 20px) !important;
  }

  .evfLegalHero {
    padding: 22px 17px !important;
  }

  .evfLegalContent {
    padding: 22px 16px 26px !important;
  }

  .evfLegalContent h2 {
    font-size: 25px !important;
    line-height: 1.22 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: auto;
  }

  .evfLegalContent h3,
  .evfLegalContent h4 {
    font-size: 18px !important;
  }

  .evfLegalContent p,
  .evfLegalContent li,
  .evfLegalContent td,
  .evfLegalContent th,
  .evfLegalContent div,
  .evfLegalContent span,
  .evfLegalContent a {
    font-size: 15.5px !important;
    line-height: 1.68 !important;
  }
}


/* 1.6.3 semantische Rechtsseite */
.evfLegalJump {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
}

.evfLegalJump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(101,82,105,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #604d67 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.evfLegalSections {
  display: grid;
  gap: 18px;
}

.evfLegalSection {
  width: 100%;
  padding: 32px 36px;
  border: 1px solid var(--legal-line);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 34px rgba(70,55,74,.05);
}

.evfLegalSection h2 {
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--legal-plum-dark) !important;
  font-size: clamp(27px,3vw,36px) !important;
  line-height: 1.18 !important;
  font-weight: 680 !important;
  letter-spacing: -.025em !important;
}

.evfLegalSection h3,
.evfLegalSection h4 {
  margin: 26px 0 9px !important;
  padding: 0 !important;
  color: #554959 !important;
  font-size: 21px !important;
  line-height: 1.35 !important;
  font-weight: 680 !important;
}

.evfLegalSection p,
.evfLegalSection li,
.evfLegalSection td,
.evfLegalSection th,
.evfLegalSection blockquote {
  color: #5c5560 !important;
  font-size: 16px !important;
  line-height: 1.76 !important;
  font-weight: 400 !important;
  overflow-wrap: anywhere;
}

.evfLegalSection p {
  margin: 0 0 14px !important;
}

.evfLegalSection strong,
.evfLegalSection b {
  color: #413a44 !important;
  font-weight: 680 !important;
}

.evfLegalSection a {
  color: #6b5670 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  overflow-wrap: anywhere;
}

.evfLegalSection ul,
.evfLegalSection ol {
  margin: 8px 0 18px !important;
  padding-left: 22px !important;
}

@media screen and (max-width: 760px) {
  .evfLegalInner {
    width: calc(100% - 18px) !important;
  }

  .evfLegalHero {
    padding: 22px 18px !important;
  }

  .evfLegalFacts {
    gap: 8px !important;
  }

  .evfLegalFact {
    padding: 14px 15px !important;
  }

  .evfLegalJump {
    gap: 7px;
    margin-bottom: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .evfLegalJump::-webkit-scrollbar {
    display: none;
  }

  .evfLegalJump a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px !important;
  }

  .evfLegalSections {
    gap: 12px;
  }

  .evfLegalSection {
    padding: 24px 18px;
    border-radius: 19px;
  }

  .evfLegalSection h2 {
    font-size: 27px !important;
    margin-bottom: 18px !important;
  }

  .evfLegalSection h3,
  .evfLegalSection h4 {
    font-size: 19px !important;
    margin-top: 22px !important;
  }

  .evfLegalSection p,
  .evfLegalSection li,
  .evfLegalSection td,
  .evfLegalSection th,
  .evfLegalSection blockquote {
    font-size: 15.5px !important;
    line-height: 1.72 !important;
  }
}
