/* ============================================================
   JUNIOR 1 – Konzept-Seiten (Übersicht, Artikel) + Teaser auf der Startseite
   ============================================================ */

/* zweisprachige Blöcke: nur die aktive Sprache zeigen */
html:not([data-lang="en"]) .l-en { display: none !important; }
html[data-lang="en"] .l-de { display: none !important; }

/* ---------- Themen-Karten (Startseite, Übersicht, „Weitere Themen“) ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
@media (max-width: 1000px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .topic-grid { grid-template-columns: 1fr; } }
.topic-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 24px;
  background: #fff; border: 1px solid var(--cream-border-3); border-radius: 26px; color: var(--ink);
  box-shadow: 0 14px 30px -20px rgba(20, 32, 26, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.topic-card:hover { transform: translateY(-6px); box-shadow: 0 30px 46px -24px rgba(20, 32, 26, .42); border-color: color-mix(in srgb, var(--green) 28%, #fff); color: var(--ink); }
.topic-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 11%, #fff); color: var(--green); margin-bottom: 4px; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.topic-ico svg { width: 26px; height: 26px; }
.topic-card:hover .topic-ico { background: var(--green); color: #fff; transform: rotate(-6deg) scale(1.05); }
.topic-card h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--deep); }
.topic-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.topic-more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--green-dark); font-size: 15.5px; }
.topic-card:hover .topic-more { text-decoration: underline; text-underline-offset: 4px; }

/* Startseite: Sektion */
.konzept-section { max-width: var(--maxw); margin: 0 auto; padding: clamp(84px, 11vw, 136px) var(--gutter) 24px; }
.konzept-section + .news-section { padding-top: clamp(56px, 7vw, 96px); }

/* Handy: Karten nebeneinander wischen (wie Einrichtungen und Neuigkeiten) */
@media (max-width: 640px) {
  .konzept-section .topic-grid, .art-more .topic-grid {
    display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
    margin: 28px calc(-1 * var(--gutter)) -30px; padding: 6px var(--gutter) 64px;
  }
  .konzept-section .topic-grid::-webkit-scrollbar, .art-more .topic-grid::-webkit-scrollbar { display: none; }
  .konzept-section .topic-card, .art-more .topic-card { flex: 0 0 80%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .konzept-section .topic-card, .konzept-section .topic-card:hover, .art-more .topic-card, .art-more .topic-card:hover { transform: none; box-shadow: 0 16px 28px -20px rgba(20, 32, 26, .42); }
  .topic-dots { display: flex; margin-top: -10px; }
}
@media (min-width: 641px) { .topic-dots { display: none !important; } }

/* ---------- Artikel / Übersicht ---------- */
.art { max-width: 1120px; margin: 0 auto; padding: 40px var(--gutter) 96px; }
.art-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px 8px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--cream-border-3); font-weight: 700; font-size: 14.5px; color: var(--deep); transition: background-color .2s, transform .2s; }
.art-back:hover { background: #f1ede2; transform: translateX(-2px); color: var(--deep); }
.art-back svg { width: 18px; height: 18px; }
.art > .eyebrow { margin-top: 26px; }
.art h1 { margin-top: 12px; font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--deep); text-wrap: balance; max-width: 18em; }
.art-lede { margin-top: 18px; max-width: 38em; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--ink-soft); }
.art-fig { margin: 34px 0 0; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 16 / 7; background: #e8e2d2; }
.art-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .art-fig { aspect-ratio: 4 / 3; border-radius: 22px; } }

.art-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 48px; }
@media (min-width: 1000px) { .art-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; } }
.art-toc { display: none; }
@media (min-width: 1000px) {
  .art-toc { display: block; position: sticky; top: 110px; align-self: start; padding: 4px 0; }
  .art-toc-t { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
  .art-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--cream-border-3); }
  .art-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink-soft); transition: color .2s, border-color .2s; }
  .art-toc a:hover { color: var(--deep); }
  .art-toc a.is-on { color: var(--green-dark); border-left-color: var(--green); }
}
.art-body { max-width: 44rem; }
.art-sec { scroll-margin-top: 100px; }
.art-sec + .art-sec { margin-top: 44px; }
.art-sec h2 { font-size: clamp(23px, 2.6vw, 29px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--deep); margin: 0 0 14px; }
.art-sec p { margin: 0 0 16px; font-size: 17.5px; line-height: 1.75; color: #2c3a33; }
.art-list { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.art-list li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.6; color: #2c3a33; }
.art-list li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: color-mix(in srgb, var(--green) 20%, #fff); box-shadow: inset 0 0 0 3px var(--green); }

.art-quote { margin: 64px 0 0; padding: 32px clamp(22px, 4vw, 44px); border-radius: 26px; background: linear-gradient(150deg, #eaf5ee, #fff 80%); border: 1px solid #cfe5d6; }
.art-quote blockquote { margin: 0; }
.art-quote p { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.45; letter-spacing: -.01em; color: var(--deep); text-wrap: balance; }
.art-quote figcaption { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--green-dark); }

.art-cta { margin-top: 64px; padding: clamp(28px, 4vw, 44px); border-radius: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #1f8f50 0%, #12301f 70%); box-shadow: 0 26px 50px -26px rgba(10, 40, 24, .7); }
.art-cta h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.art-cta p { margin: 10px 0 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: #d9ebdf; }
.art-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.art-cta .btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.art-cta .btn-outline-dark:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.art-more { margin-top: 72px; }
.art-more > h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--deep); margin: 0; }
.art-more .topic-grid { margin-top: 24px; }

/* Übersicht */
.art-index .art-group { margin-top: 64px; scroll-margin-top: 100px; }
.art-index .art-group .section-head { max-width: 40em; }
.art-index .art-group .section-title { font-size: clamp(28px, 3.6vw, 40px); }
@media (min-width: 641px) { .art-group .topic-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hover: Passendes Foto aus den Kitas erscheint oben rechts und läuft Richtung Text aus (Text bleibt gut lesbar) */
.topic-card { overflow: hidden; isolation: isolate; }
.topic-card::before, .topic-card::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.topic-card::before {
  top: 0; right: 0; width: 82%; height: 86%;
  background: var(--img) center / cover no-repeat;
  opacity: 0; transform: scale(1.1) translate(3%, -2%); transform-origin: 100% 0;
  transition: opacity .5s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
  -webkit-mask-image: radial-gradient(125% 125% at 100% 0%, #000 0%, #000 38%, rgba(0, 0, 0, .7) 58%, transparent 88%);
  mask-image: radial-gradient(125% 125% at 100% 0%, #000 0%, #000 38%, rgba(0, 0, 0, .7) 58%, transparent 88%);
}
/* heller Verlauf von links und von unten: Überschrift und Text bleiben auch über dem Bild gut lesbar, die rechte obere Ecke bleibt frei */
.topic-card::after {
  inset: 0; opacity: 0; transition: opacity .5s ease;
  background:
    linear-gradient(to top, #fff 0%, rgba(255, 255, 255, .94) 34%, rgba(255, 255, 255, 0) 66%),
    linear-gradient(98deg, #fff 0%, rgba(255, 255, 255, .9) 30%, rgba(255, 255, 255, .25) 58%, rgba(255, 255, 255, 0) 80%);
}
.topic-card:hover::before, .topic-card:focus-visible::before { opacity: 1; transform: none; }
.topic-card:hover::after, .topic-card:focus-visible::after { opacity: 1; }
.topic-card:hover .topic-ico { background: var(--green); color: #fff; }
@media (hover: none) { .topic-card::before, .topic-card::after { display: none; } }
