/* Contextual links and navigation actions in the Orange Growth design. */
:where(main, #inhalt, #content) :is(p, dd, figcaption, td) a[href]:not(
  :where([class*="btn"], [class*="button"], [class*="card-link"], [role="button"], [class*="skip-link"])
) {
  color: #204450;
  font-weight: 650;
  text-decoration: none;
  border-radius: .18em;
  background: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  overflow-wrap: anywhere;
}

:where(main, #inhalt, #content) :is(.text-link, .orange-link, .path-links a[href], .btn-row a[href]):not(
  :where([class*="btn"], [class*="button"], [class*="card-link"], [role="button"])
),
:where(main, #inhalt, #content) p:has(> a:is(.btn, .tog-button)) > a[href]:not(
  :where([class*="btn"], [class*="button"], [role="button"])
),
:where(main, #inhalt, #content) nav:is([aria-label="Auf dieser Seite"], [aria-label="On this page"]) a[href] {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: .56rem .85rem;
  border: 1px solid #d8bba9;
  border-radius: .55rem;
  background: #fff8ef;
  color: #204450;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

:where(main, #inhalt, #content) nav:is([aria-label="Auf dieser Seite"], [aria-label="On this page"]) {
  padding-block: 1rem clamp(1.5rem, 3vw, 2.5rem);
}
:where(main, #inhalt, #content) nav:is([aria-label="Auf dieser Seite"], [aria-label="On this page"]) ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
}
:where(main, #inhalt, #content) nav:is([aria-label="Auf dieser Seite"], [aria-label="On this page"]) li {
  margin: 0;
  max-inline-size: 100%;
}

nav:is([aria-label="Brotkrümelnavigation"], [aria-label="Breadcrumb"], [aria-label="Breadcrumb navigation"]) a[href] {
  background: #f8e5d8;
  color: #204450;
  border-radius: .35rem;
  padding: .14em .4em;
  font-weight: 650;
  text-decoration: none;
}

:where(main, #inhalt, #content) :is(p a[href], dd a[href], figcaption a[href], td a[href], .text-link, .orange-link, .path-links a[href], .btn-row a[href], nav a[href]):not(
  :where([class*="btn"], [class*="button"], [class*="card-link"], [role="button"], [class*="skip-link"])
):is(:hover, :focus-visible) {
  background: #f4ceba;
  color: #173944;
  text-decoration: none;
}

:where(main, #inhalt, #content) a[href]:focus-visible {
  outline: 2px solid #9c4121;
  outline-offset: 3px;
}

:where(main, #inhalt, #content) :is(ul, ol) > li > a[href]:not([class]):not(nav a) {
  color: #204450;
  background: transparent;
  font-weight: 650;
  text-decoration: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  overflow-wrap: anywhere;
}
:where(main, #inhalt, #content) :is(ul, ol) > li > a[href]:not([class]):not(nav a):hover {
  background: #f4ceba;
}

/* Lists made entirely of navigation actions use one treatment for every item. */
:where(main, #inhalt, #content) :is(
  #mandatsentscheidung ul,
  ul:has(> li + li):has(> li > a.text-link:only-child):not(:has(> li:not(:has(> a[href]:only-child))))
):not(nav ul) {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
  margin-inline: 0;
  padding-inline: 0;
}
:where(main, #inhalt, #content) :is(
  #mandatsentscheidung ul,
  ul:has(> li + li):has(> li > a.text-link:only-child):not(:has(> li:not(:has(> a[href]:only-child))))
):not(nav ul) > li {
  list-style: none;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
  max-inline-size: 100%;
}
:where(main, #inhalt, #content) :is(
  #mandatsentscheidung ul,
  ul:has(> li + li):has(> li > a.text-link:only-child):not(:has(> li:not(:has(> a[href]:only-child))))
):not(nav ul) > li > a[href] {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: .56rem .85rem;
  border: 1px solid #d8bba9;
  border-radius: .55rem;
  background: #fff8ef;
  color: #204450;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}
:where(main, #inhalt, #content) :is(
  #mandatsentscheidung ul,
  ul:has(> li + li):has(> li > a.text-link:only-child):not(:has(> li:not(:has(> a[href]:only-child))))
):not(nav ul) > li > a[href]:is(:hover, :focus-visible) {
  background: #f4ceba;
  color: #173944;
}
