/* Artikelkopf der Wissensbibliothek, auch auf den Seiten mit seo21-Basistypografie. */
.rk-hero.reader-hero--illustrated {
  --rk-gutter: clamp(22px, 4.3vw, 76px);
  display: block;
  padding: 42px 0 58px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #fff 45%, #f8f9fc);
  color: #10243f;
  text-align: left;
  font: 400 18px/1.7 Outfit, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rk-hero.reader-hero--illustrated *,
.rk-hero.reader-hero--illustrated *::before,
.rk-hero.reader-hero--illustrated *::after {
  box-sizing: border-box;
}

/* Beim Öffnen erhält der eingebettete Artikelkopf die volle Seitenbreite.
   Aufklappzeile, Kartenrahmen und Lesespalte behalten ihre bisherige Breite. */
details.rk-fold[open]:has(> .rk-insert > .rk-hero.reader-hero--illustrated) {
  --rk-fold-outer: 1160px;
  --rk-fold-inner: min(calc(100% - 2px), calc(var(--rk-fold-outer) - 2px));
  position: relative;
  isolation: isolate;
  max-width: none;
  border-inline-width: 0;
  border-block-color: transparent;
  background: transparent;
}

details.rk-fold[open]:has(> .rk-insert > .rk-hero.reader-hero--illustrated)::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -1px 0;
  width: min(100%, var(--rk-fold-outer));
  margin-inline: auto;
  box-sizing: border-box;
  border: 1px solid #d9d2d4;
  border-radius: 16px;
  background: white;
}

details.rk-fold[open]:has(> .rk-insert > .rk-hero.reader-hero--illustrated) > summary {
  width: var(--rk-fold-inner);
  margin-inline: auto;
}

details.rk-fold[open] > .rk-insert:has(> .rk-hero.reader-hero--illustrated) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rk-fold-inner) minmax(0, 1fr);
}

details.rk-fold[open] > .rk-insert > .rk-hero.reader-hero--illustrated {
  grid-column: 1 / -1;
}

details.rk-fold[open] > .rk-insert:has(> .rk-hero.reader-hero--illustrated) > .rk-inner {
  grid-column: 2;
}

.rk-hero.reader-hero--illustrated .wrap.reader-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .9fr);
  grid-template-areas: "intro art" "summary art";
  gap: 22px 58px;
  align-items: center;
  width: min(1320px, calc(100% - var(--rk-gutter) * 2));
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
}

.rk-hero.reader-hero--illustrated .reader-hero-intro {
  grid-area: intro;
  align-self: end;
  min-width: 0;
}

.rk-hero.reader-hero--illustrated .reader-category {
  display: inline;
  font: 400 11px/1.7 Outfit, Arial, sans-serif;
  color: #ef416f;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}

.rk-hero.reader-hero--illustrated .reader-category:focus-visible {
  outline: 2px solid #384a9f;
  outline-offset: 3px;
}

.rk-hero.reader-hero--illustrated .rk-hero-title {
  max-width: none;
  margin: 20px 0 0;
  color: #10243f;
  font: 800 clamp(35px, 4vw, 59px)/1.17 Epilogue, Arial, sans-serif;
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.rk-hero.reader-hero--illustrated .reader-hero-summary {
  grid-area: summary;
  align-self: start;
  min-width: 0;
}

.rk-hero.reader-hero--illustrated .lead {
  max-width: 740px;
  margin: 0;
  color: #10243f;
  font: 400 21px/1.75 Outfit, Arial, sans-serif;
}

.rk-hero.reader-hero--illustrated .lead p {
  margin: 0;
  color: #7b8495;
  font: inherit;
}

.rk-hero.reader-hero--illustrated .lead p + p {
  margin-top: 18px;
}

.rk-hero.reader-hero--illustrated .reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 25px 0 0;
  color: #a2adbf;
  font: 400 12px/1.7 Outfit, Arial, sans-serif;
}

.rk-hero.reader-hero--illustrated .collage.article-art--hero {
  grid-area: art;
  display: flex;
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: clamp(330px, 36vw, 510px);
  aspect-ratio: 4/3;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.rk-hero.reader-hero--illustrated .article-art--hero > img {
  display: block;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 15px 15px #10243f08);
  transform: translate(var(--mx, 0px), var(--my, 0px));
  animation: rk-art-float 7s ease-in-out infinite;
}

.rk-hero.reader-hero--illustrated .article-art--hero .paint {
  position: absolute;
  z-index: 0;
  inset: 14% 8% 12%;
  background: #e77ce6;
  clip-path: polygon(9% 13%, 35% 0, 93% 8%, 100% 31%, 90% 76%, 70% 100%, 18% 91%, 0 64%, 5% 33%);
  transform: rotate(-5deg);
  opacity: .48;
  animation: rk-art-paint 17s ease-in-out infinite;
}

.rk-hero.reader-hero--illustrated .article-art--hero .pink { background: #fb8cb2; }
.rk-hero.reader-hero--illustrated .article-art--hero .blue { background: #92a4ed; }
.rk-hero.reader-hero--illustrated .article-art--hero .mint { background: #8de4c7; }

.rk-hero.reader-hero--illustrated .article-art--hero .paint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(134deg, transparent 0 6px, #fff2 7px 13px);
}

.rk-hero.reader-hero--illustrated .article-art--hero .ghost {
  position: absolute;
  inset: 9% 4% 8%;
  z-index: -1;
  border: 2px solid #edf0f8;
  border-radius: 40% 54% 44% 56%;
  rotate: 6deg;
}

.rk-hero.reader-hero--illustrated .article-art--hero .ink {
  position: absolute;
  display: block;
  z-index: 5;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.rk-hero.reader-hero--illustrated .article-art--hero .ink-star {
  width: 65px;
  height: 65px;
  right: 6%;
  top: 9%;
  color: #ef416f;
  animation: rk-art-swing 9s ease-in-out infinite;
}

.rk-hero.reader-hero--illustrated .article-art--hero .ink-zig {
  width: 104px;
  height: 50px;
  right: 5%;
  bottom: 12%;
  rotate: -8deg;
  color: #384a9f;
}

@keyframes rk-art-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes rk-art-swing {
  0%, 100% { rotate: -8deg; }
  50% { rotate: 8deg; }
}
@keyframes rk-art-paint {
  0%, 100% { rotate: -5deg; scale: 1; }
  50% { rotate: 1deg; scale: 1.025; }
}

@media (max-width: 1100px) {
  .rk-hero.reader-hero--illustrated .wrap.reader-hero-grid {
    gap: 22px 35px;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  }
  .rk-hero.reader-hero--illustrated .rk-hero-title { font-size: clamp(36px, 4vw, 48px); }
  .rk-hero.reader-hero--illustrated .collage.article-art--hero { height: 390px; }
  .rk-hero.reader-hero--illustrated .lead { font-size: 20px; }
}

@media (max-width: 820px) {
  .rk-hero.reader-hero--illustrated { --rk-gutter: 26px; padding: 30px 0 45px; }
  .rk-hero.reader-hero--illustrated .wrap.reader-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "art" "summary";
    gap: 20px;
  }
  .rk-hero.reader-hero--illustrated .rk-hero-title { max-width: 740px; font-size: clamp(36px, 5.7vw, 49px); }
  .rk-hero.reader-hero--illustrated .collage.article-art--hero { width: min(100%, 470px); height: 350px; justify-self: center; }
  .rk-hero.reader-hero--illustrated .lead { max-width: none; }
  .rk-hero.reader-hero--illustrated .reader-meta { gap: 15px; font-size: 11px; }
}

@media (max-width: 560px) {
  .rk-hero.reader-hero--illustrated { --rk-gutter: 23px; padding: 20px 0 38px; font-size: 17px; }
  .rk-hero.reader-hero--illustrated .wrap.reader-hero-grid { gap: 15px; }
  .rk-hero.reader-hero--illustrated .rk-hero-title { margin-top: 16px; font-size: 35px; line-height: 1.25; }
  .rk-hero.reader-hero--illustrated .reader-category { font-size: 10px; line-height: 1.6; }
  .rk-hero.reader-hero--illustrated .collage.article-art--hero { height: 275px; max-width: 355px; }
  .rk-hero.reader-hero--illustrated .lead { font-size: 19px; }
  .rk-hero.reader-hero--illustrated .reader-meta { margin-top: 23px; gap: 10px 18px; font-size: 10px; }
  .rk-hero.reader-hero--illustrated .article-art--hero .ink-star { width: 47px; height: 47px; top: 11%; }
  .rk-hero.reader-hero--illustrated .article-art--hero .ink-zig { width: 80px; height: 40px; right: 6%; bottom: 14%; }
  .rk-hero.reader-hero--illustrated .article-art--hero .paint { left: 10%; right: 10%; }
}

@media (max-width: 360px) {
  .rk-hero.reader-hero--illustrated { --rk-gutter: 19px; }
  .rk-hero.reader-hero--illustrated .rk-hero-title { font-size: 31px; }
  .rk-hero.reader-hero--illustrated .collage.article-art--hero { height: 240px; }
  .rk-hero.reader-hero--illustrated .lead { font-size: 18px; }
}

html[data-motion="paused"] .rk-hero.reader-hero--illustrated .article-art--hero * {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .rk-hero.reader-hero--illustrated .article-art--hero * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rk-hero.reader-hero--illustrated .article-art--hero > img { transform: none !important; }
}

.rk-hero.reader-hero--illustrated.rk-gallery-stage { padding: 0; background: transparent; }
.rk-hero.reader-hero--illustrated.rk-gallery-stage .collage.article-art--hero {
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 4/3;
}
.rk-hero.reader-hero--illustrated.rk-gallery-stage .article-art--hero * { animation: none !important; }
.rk-hero.reader-hero--illustrated.rk-gallery-stage .article-art--hero > img { transform: none; }
