/* DANLEOGRA / dlgswiss.ch
   R6: visual repair for R4 contextual guide navigation.
   Only the .dlg-r4-related block is affected; no global selectors. */

main > section.dlg-r4-related {
  box-sizing: border-box;
  width: min(1480px, calc(100% - 2 * clamp(14px, 4vw, 64px)));
  max-width: none;
  min-height: 0;
  margin: clamp(18px, 2.5vw, 38px) auto clamp(36px, 5vw, 76px);
  padding: clamp(24px, 3.2vw, 46px);
  border: 1px solid rgba(166, 149, 255, .20);
  border-radius: clamp(18px, 2vw, 26px);
  color: #eff2fb;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(116, 79, 219, .13), transparent 45%),
    linear-gradient(140deg, rgba(23, 26, 39, .96), rgba(11, 14, 23, .98));
  box-shadow: 0 18px 52px rgba(0, 0, 0, .20);
  isolation: isolate;
}

main > section.dlg-r4-related::before {
  content: "MEHR ENTDECKEN";
  display: block;
  width: fit-content;
  margin: 0 0 .8rem;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #b9a6ff;
}

main > section.dlg-r4-related > h4 {
  margin: 0 0 .45rem;
  padding: 0;
  max-width: 27ch;
  color: #f8f8ff;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

main > section.dlg-r4-related > p {
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  max-width: 65ch;
  color: #b9c0d0;
  font-size: clamp(.95rem, 1.15vw, 1.06rem);
  line-height: 1.65;
}

main > section.dlg-r4-related > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.05vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}

main > section.dlg-r4-related > ul > li {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

main > section.dlg-r4-related > ul > li::marker { content: ""; }

main > section.dlg-r4-related > ul > li > a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  height: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .105);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: #e7eaf5;
  font-size: clamp(.90rem, 1vw, .99rem);
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .15s ease, border-color .15s ease,
              box-shadow .15s ease, transform .15s ease;
}

main > section.dlg-r4-related > ul > li > a::before {
  content: "";
  display: block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, .10);
}

main > section.dlg-r4-related > ul > li > a::after {
  content: "↗";
  flex: 0 0 auto;
  margin-left: auto;
  color: #bfaaff;
  font-size: 1.13em;
  line-height: 1;
}

main > section.dlg-r4-related > ul > li > a:hover {
  transform: translateY(-2px);
  border-color: rgba(174, 146, 255, .46);
  background: rgba(151, 108, 255, .12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .19);
  color: #fff;
}

main > section.dlg-r4-related > ul > li > a:focus-visible {
  outline: 3px solid #c2a9ff;
  outline-offset: 3px;
}

@media (min-width: 1180px) {
  main > section.dlg-r4-related > ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  main > section.dlg-r4-related {
    width: calc(100% - 28px);
    margin-top: 18px;
    margin-bottom: 38px;
    padding: 22px 16px;
    border-radius: 18px;
  }
  main > section.dlg-r4-related > ul {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  main > section.dlg-r4-related > ul > li > a {
    min-height: 58px;
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main > section.dlg-r4-related > ul > li > a { transition: none; }
  main > section.dlg-r4-related > ul > li > a:hover { transform: none; }
}
