/* Dynamic article body. Class names are local to the Divi Theme Builder template. */
#et-boc .mathar-article-shell {
  --mathar-article-reading-width: 790px;
  padding: 0 !important;
  border-block-start: 0;
  row-gap: 0 !important;
  color: var(--mathar-ink);
}
#et-boc .mathar-article-shell .mathar-lp-row { grid-template-columns: minmax(0, 1fr); gap: 0 !important; }
#et-boc .mathar-article-shell .mathar-article-edge { width: 100% !important; max-width: none !important; }
#et-boc .mathar-article-shell svg:not(.et_pb_svg svg) { width: 19px; height: 19px; flex: 0 0 19px; }
#et-boc .mathar-article-shell :is(a,button,summary):focus-visible {
  outline: 2px solid var(--mathar-red);
  outline-offset: 3px;
}
.mathar-article-breadcrumb { background: #f2f6f9; }
.mathar-article-breadcrumb ol,
.mathar-article-breadcrumb > .mathar-article-return {
  width: min(calc(100% - var(--mathar-gutter) * 2), var(--mathar-content-width));
  margin: 0 auto;
}
.mathar-article-breadcrumb ol {
  list-style: none;
  padding: 34px 0 9px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
}
.mathar-article-breadcrumb li { display: flex; align-items: center; gap: 12px; }
.mathar-article-breadcrumb li + li::before { content: '›'; color: #536477; }
.mathar-article-breadcrumb a { display: inline-flex; min-height: 44px; align-items: center; color: var(--mathar-ink); }
#et-boc .mathar-article-breadcrumb > .mathar-article-return { display: none; }
.mathar-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--mathar-blue-deep);
  color: white;
}
.mathar-article-hero.has-photo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mathar-article-hero-copy {
  align-self: center;
  padding: clamp(44px, 5.2vw, 78px) clamp(28px, 4.2vw, 64px) clamp(44px, 5.2vw, 78px) max(var(--mathar-gutter), calc((100vw - 1280px) / 2));
}
.mathar-article-topic, .mathar-article-flag {
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .86rem;
  font-weight: 700;
}
.mathar-article-topic { display: flex; align-items: center; gap: 12px; padding: 0 0 16px; }
.mathar-article-topic::before { content: ''; width: 30px; height: 3px; background: var(--mathar-red); flex: 0 0 30px; }
#et-boc .mathar-article-hero h1 {
  margin: 0;
  padding: 0;
  max-width: 24ch;
  font-size: clamp(2.15rem, 3.9vw, 3.5rem) !important;
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  color: #fff;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.mathar-article-deck { margin: 18px 0 0; padding: 0; font-size: clamp(1.05rem, 1.4vw, 1.225rem); line-height: 1.5; max-width: 52ch; }
.mathar-article-meta { border-top: 1px solid rgb(255 255 255 / .26); padding-top: 16px; margin-top: 23px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mathar-article-meta > span { display: inline-flex; gap: 7px; align-items: center; }
.mathar-article-hero-photo { position: relative; min-height: 360px; }
.mathar-article-hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.mathar-article-share { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding: 10px 0; }
#et-boc .mathar-article-shell:has(.mathar-article-share) { border-bottom: 1px solid #dfe7ef; }
.mathar-article-share-actions { position: relative; display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; }
#et-boc :is(.mathar-article-return,.mathar-article-share-actions a,.mathar-article-copy) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--mathar-blue);
  font-weight: 600;
}
.mathar-article-share-actions :is(a,button) {
  min-width: 44px;
  justify-content: center;
  background: #f2f6f9;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
#et-boc .mathar-article-copy[hidden], #et-boc .mathar-article-aside[hidden] { display: none; }
.mathar-article-copy-status:not(:empty) { flex-basis: 100%; }
#et-boc .mathar-article-shell .mathar-article-reading { padding-block: 66px !important; }
#et-boc .mathar-article-side { align-self: stretch; min-width: 0; }
#et-boc .mathar-article-side:has(.mathar-article-aside[hidden]) { display: none; }
.mathar-article-sticky { position: sticky; top: 24px; }
.mathar-article-toc-title, .mathar-article-toc summary { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
#et-boc .mathar-article-toc-title { padding: 8px 0 0; }
.mathar-article-toc summary { display: none; }
.mathar-article-toc-title::after, .mathar-article-toc summary::after, .mathar-article-flag::after { content: ''; display: block; width: 42px; height: 3px; background: var(--mathar-red); margin: 10px 0 14px; }
#et-boc .mathar-article-toc ol { margin: 0; padding: 0 0 0 1.75em; list-style: decimal-leading-zero outside; }
#et-boc .mathar-article-toc li { color: #536477; border-bottom: 1px solid #e1e8ef; list-style-position: outside; }
#et-boc .mathar-article-toc li::marker { color: var(--mathar-red); font-weight: 600; }
.mathar-article-toc a { display: block; padding: 10px 1px; min-height: 44px; color: var(--mathar-blue); }
.mathar-article-toc a:hover { color: var(--mathar-red); }
.mathar-article-personal { background: #f2f6f9; margin-top: 24px; padding: 20px; }
.mathar-article-personal p { padding: 0; }
#et-boc .mathar-article-personal a { display: inline-flex; margin-top: 6px; min-height: 44px; align-items: center; font-weight: 700; color: var(--mathar-blue-deep); }
#et-boc .mathar-article-personal a:hover { text-decoration: underline; }
#et-boc .mathar-article-body {
  justify-self: center;
  min-width: 0;
  width: min(100%, var(--mathar-article-reading-width));
  color: #263546;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
  counter-reset: mathar-article-sections;
}
#et-boc .has-toc .mathar-article-body { justify-self: start; }
#et-boc .mathar-article-body h2 { font-size: clamp(1.65rem, 2.5vw, 2.35rem) !important; margin: 36px 0 14px; }
#et-boc .mathar-article-body h3 { font-size: clamp(1.25rem, 2vw, 1.7rem) !important; margin: 24px 0 10px; }
.mathar-article-body :is(h2,h3) { scroll-margin-block-start: 24px; }
#et-boc .mathar-article-body a { color: var(--mathar-blue); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.mathar-article-body :is(ul,ol) { padding-inline-start: 1.3em; }
.mathar-article-body figure { margin-block: 24px; }
.mathar-article-body figcaption { color: #536477; font-size: .9rem; }
.mathar-article-body img { max-width: 100%; height: auto; }
.mathar-article-body .wp-block-table { overflow-x: auto; }
.mathar-article-body blockquote { border-color: var(--mathar-red); color: var(--mathar-ink); }
.mathar-article-body :is(.mathar-article-tipp,.mathar-article-hinweis,.mathar-article-fazit) { margin: 32px 0; background: #f2f6f9; border-inline-start: 3px solid var(--mathar-red); padding: clamp(20px,4vw,36px); }
#et-boc .mathar-article-body :is(.mathar-article-tipp,.mathar-article-hinweis,.mathar-article-fazit) h3 { margin-top: 0; }
.mathar-article-tipp h3::before {
  content: '';
  display: inline-block;
  vertical-align: -.1em;
  width: 1em;
  height: 1em;
  margin-right: .4em;
  background-color: var(--mathar-blue);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 19h6m-5 3h4m-2-20a6 6 0 0 0-4 10c1 1 1 3 1 4h6c0-1 0-3 1-4a6 6 0 0 0-4-10Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.mathar-article-nummer { counter-increment: mathar-article-sections; border-top: 1px solid #dfe7ef; margin: 28px 0; padding-top: 8px; }
#et-boc .mathar-article-body .mathar-article-nummer h2 { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .55em; align-items: baseline; margin-top: 16px; }
.mathar-article-nummer h2::before { content: counter(mathar-article-sections, decimal-leading-zero); color: var(--mathar-red); font-size: 1.22em; line-height: 1; }
.mathar-article-service { display: grid; background: #f2f6f9; margin-bottom: 20px; }
.mathar-article-service.has-photo { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
#et-boc .mathar-article-service .mathar-mag-media { aspect-ratio: auto; min-height: 180px; }
#et-boc .mathar-article-service .mathar-mag-copy { justify-content: center; padding: clamp(18px, 2.4vw, 30px); }
#et-boc .mathar-article-service h2 { font-size: clamp(1.375rem, 2vw, 1.75rem) !important; line-height: 1.16; }
#et-boc .mathar-article-service .mathar-mag-read { margin-top: 4px; padding-top: 0; }
.mathar-article-preview { font-size: .88rem; padding: 8px 0 0; }
#et-boc .mathar-article-shell .mathar-article-end { margin-bottom: 56px !important; }
#et-boc :is(.mathar-article-reading, .mathar-article-end) > .et_pb_column { display: grid !important; grid-template-columns: minmax(0, 1fr); align-items: start; }
#et-boc .mathar-article-end > .et_pb_column > .et_pb_text { width: min(100%, var(--mathar-article-reading-width)); min-width: 0; justify-self: center; }
#et-boc .mathar-article-shell:has(.mathar-article-reading.has-toc) {
  --mathar-article-columns: minmax(0, .9fr) minmax(0, 3fr);
  --mathar-article-column-gap: clamp(28px, 4.9vw, 72px);
}
@media (min-width: 861px) {
  #et-boc .mathar-article-reading.has-toc > .et_pb_column,
  #et-boc .mathar-article-reading.has-toc + .mathar-article-end > .et_pb_column {
    grid-template-columns: var(--mathar-article-columns);
    gap: var(--mathar-article-column-gap) !important;
  }
  #et-boc .mathar-article-reading.has-toc + .mathar-article-end > .et_pb_column > .et_pb_text { grid-column: 2; justify-self: start; }
}
#et-boc .mathar-article-shell:has(.mathar-article-related) { background: #f2f6f9; }
#et-boc .mathar-article-related-wrap:not(:has(.mathar-article-related)) { display: none; }
.mathar-article-related { padding: 62px 0; }
#et-boc .mathar-article-related .mathar-mag-grid { margin-top: 26px; }
#et-boc .mathar-article-related .mathar-mag-card { background: white; }
#et-boc .mathar-article-cta .mathar-lp-kicker { row-gap: 0 !important; }

@media (max-width: 860px) {
  .mathar-article-hero.has-photo { grid-template-columns: minmax(0, 1fr); }
  .mathar-article-hero-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .mathar-article-hero-copy { padding: 40px var(--mathar-gutter); }
  #et-boc .mathar-article-reading.has-toc > .et_pb_column { gap: 24px !important; }
  .mathar-article-sticky { position: static; }
  .mathar-article-personal { display: none; }
  #et-boc .mathar-article-toc-title { display: none; }
  .mathar-article-toc { background: #f2f6f9; }
  .mathar-article-toc summary { display: block; position: relative; list-style: none; cursor: pointer; min-height: 44px; padding: 16px 48px 9px 18px; }
  .mathar-article-toc summary::-webkit-details-marker { display: none; }
  .mathar-article-toc summary::before { content: ''; position: absolute; inset: 20px 21px auto auto; width: 9px; height: 9px; border: solid var(--mathar-blue-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .mathar-article-toc[open] summary::before { transform: rotate(225deg); }
  .mathar-article-toc summary::after { margin-bottom: 6px; }
  .mathar-article-toc nav { margin: 0 18px; padding-bottom: 10px; }
}
@media (max-width: 767px) {
  .mathar-article-breadcrumb ol { display: none; }
  #et-boc .mathar-article-breadcrumb > .mathar-article-return { display: flex; padding-top: 12px; }
  .mathar-article-share { padding-block: 8px; }
  #et-boc .mathar-article-shell .mathar-article-reading { padding-block: 36px !important; }
  .mathar-article-service.has-photo { grid-template-columns: minmax(0, 1fr); }
  #et-boc .mathar-article-service .mathar-mag-media { min-height: 0; aspect-ratio: 4 / 3; }
  .mathar-article-related { padding: 38px 0; }
}
