/* =====================================================
   Artikel-Layout für Aktuelles-Beiträge (Template newseintrag)
   Lesespalte ~70 Zeichen, Inhaltsverzeichnis, ruhige Typografie.
   ===================================================== */

.article-page {
  --a-blue: #054783;
  --a-yellow: #f9d500;
  --a-text: #1f2d3d;
  --a-muted: #5d6b7a;
  --a-border: #e3e8ef;
  --a-soft: #eef4fa;
  --a-measure: 44rem;
  --a-wide: 64rem; /* Kopf, Titelbild und Layout teilen dieselbe linke Kante */
}

/* ---------- Kopf ---------- */
.article-header { padding: 2.5rem 0 1.5rem; }
.article-header .container { max-width: calc(var(--a-wide) + 2rem); }
.article-breadcrumb { font-size: .875rem; color: var(--a-muted); margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.article-breadcrumb a { color: var(--a-muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--a-blue); text-decoration: underline; }

.article-category {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px; background: var(--a-yellow); color: var(--a-blue);
}
.article-category--article { background: var(--a-blue); color: #fff; }
/* gegen globale Span-Farbe in farbigen Sektionen (section.bg-light-blue span) durchsetzen */
.article-page .article-category { color: var(--a-blue); }
.article-page .article-category--article { color: #fff; }

.article-title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.15; margin: 1rem 0 1rem;
  hyphens: manual; overflow-wrap: break-word; color: var(--a-blue);
}
@media (max-width: 575px) { .article-title { hyphens: auto; } }
.article-page .article-lead { max-width: 52rem; }
/* sehr lange Komposita (z. B. Krankenhausversorgungsverbesserungsgesetz) dürfen umbrechen */
.article-lead, .article-body { overflow-wrap: break-word; }
@media (max-width: 575px) { .article-lead, .article-body { hyphens: auto; } }
.article-page .article-lead p { font-size: 1.2rem; line-height: 1.6; color: var(--a-text); margin: 0 0 1.25rem; }
.article-meta { font-size: .9rem; color: var(--a-muted); display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.article-meta a { color: var(--a-blue); }

/* ---------- Titelbild ---------- */
.article-hero { max-width: calc(var(--a-wide) + 2rem); margin: 1rem auto 2.5rem; }
.article-hero img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 12px; display: block; }

/* ---------- Layout: Lesespalte + Inhaltsverzeichnis ---------- */
.article-layout { max-width: calc(var(--a-wide) + 2rem); padding-bottom: 3.5rem; }
.article-layout > .article-body { max-width: var(--a-measure); }
@media (min-width: 1200px) {
  .article-layout--toc {
    display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem;
  }
}

.article-toc { margin-bottom: 2rem; }
.article-toc details { background: var(--a-soft); border-radius: 10px; padding: 1rem 1.25rem; }
.article-toc summary { font-weight: 700; color: var(--a-blue); cursor: pointer; }
.article-toc ol { margin: .75rem 0 0; padding-left: 1.2rem; font-size: .92rem; line-height: 1.45; }
.article-toc li { margin: .45rem 0; }
.article-toc a { color: var(--a-text); text-decoration: none; }
.article-toc a:hover { color: var(--a-blue); text-decoration: underline; }
@media (min-width: 1200px) {
  .article-toc { position: sticky; top: 120px; align-self: start; margin: 0; }
  .article-toc details { background: transparent; padding: 0; border-left: 3px solid var(--a-yellow); padding-left: 1rem; }
  .article-toc summary { list-style: none; pointer-events: none; }
  .article-toc summary::-webkit-details-marker { display: none; }
}

/* ---------- Fließtext ---------- */
.article-body { font-size: 1.075rem; line-height: 1.75; color: var(--a-text); }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1.25rem; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.25; color: var(--a-blue);
  margin: 2.75rem 0 1rem; scroll-margin-top: 120px;
}
.article-body h3 { font-size: 1.25rem; line-height: 1.3; color: var(--a-blue); margin: 2rem 0 .75rem; }
.article-body a:not(.btn) { color: var(--a-blue); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul li, .article-body ol li { margin-bottom: .4rem; }
.article-body blockquote {
  margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--a-yellow);
  font-size: 1.15rem; color: var(--a-blue);
}
/* Baukasten-Wrapper der alten Blöcke neutralisieren */
.article-body .wrapper,
.article-body .wrapper-text { padding: 0; margin: 0; background: none; text-align: left; }
.article-body .wrapper-text.line::before, .article-body .wrapper-text.line::after { display: none; }
.article-body .btns-wrapper { margin: 1.5rem 0; }
.article-body .rm-table-wrap { overflow-x: auto; margin: 1.5rem 0; }

.article-figure { margin: 2rem 0; }
.article-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 480px; margin: 0; border-radius: 10px; }
.article-figure figcaption { font-size: .85rem; color: var(--a-muted); margin-top: .5rem; }
.article-embed { margin: 2rem 0; }

/* Hinweiskasten (einzelner Teaser im Text) */
.article-callout { margin: 2.5rem 0; padding: 1.5rem; background: var(--a-soft); border-left: 4px solid var(--a-yellow); border-radius: 10px; }
.article-callout--image { display: grid; gap: 1.25rem; }
@media (min-width: 576px) { .article-callout--image { grid-template-columns: 11rem minmax(0, 1fr); align-items: start; } }
.article-callout__image img { width: 100%; height: auto; border-radius: 8px; display: block; }
.article-callout__title { font-weight: 700; color: var(--a-blue); margin: 0 0 .5rem; }
.article-callout .btn { margin-top: .25rem; }
.article-callout p:last-of-type { margin-bottom: 1rem; }

/* ---------- Autorenkasten ---------- */
.article-author {
  display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 3rem; padding: 1.5rem;
  background: var(--a-soft); border-radius: 12px; font-size: .95rem; line-height: 1.6;
}
.article-author__image { flex: 0 0 88px; }
.article-author__image img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; display: block; }
.article-author__label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a-muted); margin: 0 0 .25rem; }
.article-author__name { font-weight: 700; font-size: 1.1rem; margin: 0; }
.article-author__name a { text-decoration: none; }
.article-author__role { color: var(--a-muted); margin: 0 0 .5rem; }
.article-author p:last-child { margin-bottom: 0; }

/* ---------- Weitere Beiträge ---------- */
.article-related { padding: 3.5rem 0; }
.article-related h2 { margin-bottom: 1.5rem; }
.article-related__grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .article-related__grid { grid-template-columns: repeat(3, 1fr); } }
.article-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden;
  text-decoration: none; color: var(--a-text); box-shadow: 0 2px 8px rgba(5, 71, 131, .06);
  transition: box-shadow .2s ease, transform .2s ease;
}
.article-card:hover, .article-card:focus-visible { box-shadow: 0 8px 24px rgba(5, 71, 131, .12); transform: translateY(-2px); }
.article-card__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article-card__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.article-card h3 { font-size: 1.05rem; line-height: 1.35; margin: 0; color: var(--a-blue); }
.article-card time { font-size: .85rem; color: var(--a-muted); }
.article-related__all { margin: 1.5rem 0 0; font-weight: 700; }

/* ---------- CTA ---------- */
.article-cta { padding: 3rem 0; }
.article-cta .container { max-width: calc(var(--a-wide) + 2rem); }
.article-cta h2 { margin-bottom: .75rem; }

/* Lesefarbe gegen das globale Absatz-Blau durchsetzen */
.article-page .article-body p,
.article-page .article-body li,
.article-page .article-body td { color: var(--a-text); }

/* =====================================================
   Beitragsübersicht (Template newsuebersicht)
   ===================================================== */
.news-list { padding: 3.5rem 0 4rem; }
.news-list__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-bottom: 2rem; }
.news-list__head h2 { margin: 0; }

.news-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.news-filter__item {
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1; cursor: pointer;
  padding: .6rem 1.1rem; border-radius: 999px; border: 2px solid var(--a-blue);
  background: #fff; color: var(--a-blue); transition: background .2s ease, color .2s ease;
}
.news-filter__item:hover { background: var(--a-soft); }
.news-filter__item.is-active { background: var(--a-blue); color: #fff; }
.news-overview .news-filter__item span { color: inherit; opacity: .7; font-weight: 400; margin-left: .2rem; }

/* Karte */
.news-item {
  display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden;
  text-decoration: none; color: var(--a-text); box-shadow: 0 2px 8px rgba(5, 71, 131, .06);
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-item[hidden] { display: none; }
.news-item:hover, .news-item:focus-visible { box-shadow: 0 8px 24px rgba(5, 71, 131, .12); transform: translateY(-2px); text-decoration: none; }
.news-item__image { background: var(--a-soft); aspect-ratio: 16 / 9; overflow: hidden; }
.news-item__image picture, .news-item__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-item__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.news-item time { font-size: .85rem; color: var(--a-muted); }
.news-item h3 { font-size: 1.05rem; line-height: 1.35; margin: 0; color: var(--a-blue); }
.article-page .news-item__excerpt { font-size: .95rem; line-height: 1.55; color: var(--a-text); margin: 0; }
.article-page .news-item__more { margin-top: auto; padding-top: .25rem; font-weight: 700; font-size: .9rem; color: var(--a-blue); }
.article-page .news-item__more::after { content: " →"; }

/* Kacheln, neuester Beitrag groß */
.news-list__items { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .news-list__items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .news-list__items { grid-template-columns: repeat(3, 1fr); } }
.news-item--featured { grid-column: 1 / -1; }
.news-item--featured h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.25; }
@media (min-width: 992px) {
  .news-item--featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .news-item--featured .news-item__image { aspect-ratio: auto; min-height: 20rem; }
  .news-item--featured .news-item__body { padding: 2rem 2.25rem; justify-content: center; gap: .9rem; }
}
.is-filtered .news-item--featured { grid-column: auto; display: flex; }
.is-filtered .news-item--featured .news-item__image { aspect-ratio: 16 / 9; min-height: 0; }
.is-filtered .news-item--featured .news-item__body { padding: 1.1rem 1.25rem 1.3rem; }
.is-filtered .news-item--featured h3 { font-size: 1.05rem; }
.is-filtered .news-item--featured .news-item__excerpt { display: none; }


.news-list__more { text-align: center; margin-top: 2.5rem; }
.news-list__more [hidden] { display: none; }

/* LinkedIn als eigener Abschnitt */
.news-linkedin { padding: 4rem 0; }
.news-linkedin__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 2rem; }
.news-linkedin__head h2 { margin: 0 0 .4rem; }
.news-linkedin__head p { margin: 0; color: var(--a-muted); }


/* =====================================================
   Glossar-Übersicht (Template lexikon)
   ===================================================== */
.glossary-overview .glossary-count { font-size: .55em; font-weight: 700; vertical-align: middle; color: var(--a-muted); }
.glossary-search input {
  font: inherit; font-size: 1rem; width: min(22rem, 100%); padding: .65rem 1rem .65rem 2.6rem;
  border: 2px solid var(--a-border); border-radius: 999px; background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23054783' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m12.5 12.5 4 4'/%3E%3C/svg%3E") no-repeat 1rem center;
  color: var(--a-text);
}
.glossary-search input:focus { outline: none; border-color: var(--a-blue); }
@media (max-width: 575px) { .glossary-search, .glossary-search input { width: 100%; } }

.glossary-letters { gap: .35rem; margin-bottom: 2.5rem; }
.glossary-letters .news-filter__item { min-width: 2.5rem; padding: .55rem .7rem; text-align: center; }
.glossary-letters .news-filter__item.is-disabled { border-color: var(--a-border); color: #b5c0cc; background: transparent; cursor: default; }

.glossary-card[hidden] { display: none; }
.glossary-overview .glossary-card__letter {
  display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: var(--a-yellow); color: var(--a-blue); font-weight: 700; font-size: 1rem;
}
.glossary-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .glossary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .glossary-grid { grid-template-columns: repeat(3, 1fr); } }
.glossary-card { border-top: 4px solid var(--a-yellow); }
.glossary-card h3 { font-size: 1.15rem; }
.glossary-empty { margin: 1rem 0 0; font-size: 1.05rem; }
.glossary-card h3 { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 575px) { .glossary-letters .news-filter__item.is-disabled { display: none; } }

/* =====================================================
   Glossar-Eintrag (Template lexikoneintrag)
   ===================================================== */
.article-definition {
  max-width: 52rem; margin: 0 0 1.25rem; padding: 1.25rem 1.5rem;
  background: var(--a-soft); border-left: 4px solid var(--a-yellow); border-radius: 10px;
}
.article-page .article-definition__label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a-blue); margin: 0 0 .4rem; }
.article-page .article-definition p:not(.article-definition__label) { font-size: 1.15rem; line-height: 1.6; color: var(--a-text); margin: 0; overflow-wrap: break-word; }
@media (max-width: 575px) {
  .article-definition { padding: 1rem 1.1rem; }
  .article-page .article-definition p:not(.article-definition__label) { font-size: 1.05rem; hyphens: auto; }
}

/* Glossar: Definition auf Bildbreite, Text + Bildspalte nebeneinander (gleiche Gesamtbreite wie das Titelbild) */
.glossary-entry .article-definition { max-width: none; }
.article-aside .article-figure { margin: 0 0 1.5rem; }
.article-aside .article-figure img { width: 100%; max-height: none; object-fit: cover; }
@media (min-width: 992px) {
  .article-layout--aside { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3.5rem; align-items: start; }
  .article-layout--aside > .article-body { max-width: none; }
  .article-aside { position: sticky; top: 120px; padding-top: .5rem; }
}
@media (max-width: 991px) { .article-aside { margin-top: 2rem; } }
