/* =====================================================================
   Ads News Display 0.4.0 (2026-11-02)
   End-CTA lesbar, Komponenten-Bibliothek (.adsx-...), Sidebar, Übersicht
   Wird nach ads-news.css geladen.
   ===================================================================== */

/* --- End-CTA: das Designsystem setzt .adsx h2 auf "color: inherit". Darum hier mit höherer Spezifität. --- */
.adsx .adsx-endcta { background: linear-gradient(135deg, #0b3a42 0%, #0e5c6b 100%); margin-top: 8px; }
.adsx .adsx-endcta h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 800; max-width: 26ch; }
.adsx .adsx-endcta p { color: #d6ebef; font-size: 17px; line-height: 1.55; max-width: 56ch; }
.adsx .adsx-endcta .adsx-btn { background: #fff; color: #0b3a42; font-weight: 700; }
.adsx .adsx-endcta .adsx-btn:hover { background: #e3f1f3; filter: none; color: #0b3a42; }

/* --- Artikeltypografie etwas ruhiger als das Standardmaß des Designsystems --- */
.adsx .adsx-article h2 { font-size: clamp(24px, 2.6vw, 31px); font-weight: 700; line-height: 1.2; margin-top: 52px; }
.adsx .adsx-article h3 { font-size: 20px; font-weight: 700; margin-top: 30px; }

/* --- Kennzahl-Kacheln --- */
.adsx-article .adsx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.adsx-article .adsx-stats > li { position: static; margin: 0; padding: 20px 20px 18px; background: #f1f8f9; border: 1px solid #d3e4e8; border-radius: 16px; list-style: none; }
.adsx-article .adsx-stats > li::before { display: none; }
.adsx-stat b { display: block; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: #0e5c6b; }
.adsx-stat span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: #26303d; }
.adsx-stat small { display: block; margin-top: 8px; font-size: 12px; line-height: 1.4; color: #5b6573; }
.adsx-article .adsx-stat small a { color: #0e5c6b; }

/* --- Diagramme (Figure mit inline SVG, Quelle darunter) --- */
.adsx-article .adsx-chart { margin: 38px 0 0; padding: 22px 22px 16px; background: #fff; border: 1px solid #d3e4e8; border-radius: 18px; }
.adsx-chart__title { font-weight: 700; font-size: 16px; line-height: 1.35; color: #0b3a42; margin: 0 0 14px; }
.adsx-chart svg { display: block; width: 100%; height: auto; border-radius: 0; }
.adsx-chart svg text { font-family: inherit; }
.adsx-article .adsx-chart figcaption { font-family: inherit; font-size: 12.5px; line-height: 1.5; color: #5b6573; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e3f1f3; }
.adsx-article .adsx-chart figcaption a { color: #0e5c6b; }

/* --- Ablauf / Prozess --- */
.adsx-article ol.adsx-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 34px 0 0; padding: 0; counter-reset: adsxs; list-style: none; }
.adsx-article ol.adsx-steps > li { position: relative; margin: 0; padding: 22px 18px 18px; background: #fff; border: 1px solid #d3e4e8; border-radius: 16px; counter-increment: adsxs; font-size: 15.5px; line-height: 1.5; }
.adsx-article ol.adsx-steps > li::before { content: counter(adsxs); position: static; display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: #0e5c6b; color: #fff; font-weight: 800; font-size: 15px; font-family: inherit; }
.adsx-article ol.adsx-steps > li b { display: block; font-size: 16.5px; color: #0b3a42; margin-bottom: 4px; }

/* --- Vergleichstabelle --- */
.adsx-article .adsx-tablewrap { margin: 34px 0 0; overflow-x: auto; border: 1px solid #d3e4e8; border-radius: 16px; -webkit-overflow-scrolling: touch; }
.adsx-article table.adsx-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; margin: 0; }
.adsx-article .adsx-table th { background: #0e5c6b; color: #fff; text-align: left; font-weight: 700; padding: 13px 16px; font-size: 14px; border: 0; }
.adsx-article .adsx-table td { padding: 13px 16px; border: 0; border-top: 1px solid #e3f1f3; vertical-align: top; color: #26303d; background: #fff; }
.adsx-article .adsx-table tr:nth-child(even) td { background: #f6fafb; }
.adsx-article .adsx-table td:first-child { font-weight: 700; color: #0b3a42; }

/* --- Checkliste --- */
.adsx-article ul.adsx-check { margin: 30px 0 0; padding: 22px 22px 12px; list-style: none; background: #f1f8f9; border: 1px solid #d3e4e8; border-radius: 16px; }
.adsx-article ul.adsx-check > li { position: relative; margin: 0 0 12px; padding-left: 34px; line-height: 1.55; font-size: 16.5px; }
.adsx-article ul.adsx-check > li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #0e5c6b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.4l2.4 2.4 5.2-5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* --- Merkkasten, Zitat --- */
.adsx-article .adsx-note { margin: 34px 0 0; padding: 20px 22px 20px 24px; background: #f1f8f9; border: 1px solid #d3e4e8; border-left: 5px solid #14808f; border-radius: 14px; }
.adsx-note__t { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0e5c6b; margin: 0 0 6px; }
.adsx-article .adsx-note p { margin: 0; font-size: 16.5px; line-height: 1.6; color: #16222b; }
.adsx-article .adsx-note p + p { margin-top: 10px; }
.adsx-article .adsx-note--warn { background: #fff6ee; border-color: #f2d2b6; border-left-color: #c9501f; }
.adsx-article .adsx-note--warn .adsx-note__t { color: #a8420f; }
.adsx-article .adsx-quote { margin: 38px 0 0; padding: 26px 28px; background: #0b3a42; border: 0; border-radius: 18px; }
.adsx-article .adsx-quote p { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.4; font-weight: 700; letter-spacing: -.01em; color: #fff; margin: 0; }
.adsx-article .adsx-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: #bfe0e6; }

/* --- Gegenüberstellung (zwei Spalten) --- */
.adsx-article .adsx-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0 0; }
.adsx-vs > div { padding: 20px 20px 14px; border-radius: 16px; border: 1px solid #d3e4e8; background: #fff; }
.adsx-vs > div:first-child { background: #f1f8f9; }
.adsx-vs h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0e5c6b; }
.adsx-vs > div:last-child h4 { color: #a8420f; }
.adsx-article .adsx-vs ul { margin: 0; padding: 0; }
.adsx-article .adsx-vs li { margin-bottom: 10px; padding-left: 0; font-size: 15.5px; line-height: 1.5; }
.adsx-article .adsx-vs li::before { display: none; }

/* --- FAQ als Akkordeon --- */
.adsx-article .adsx-faq { margin: 24px 0 0; display: grid; gap: 10px; }
.adsx-faq details { background: #fff; border: 1px solid #d3e4e8; border-radius: 14px; overflow: hidden; }
.adsx-faq details[open] { background: #f6fafb; border-color: #9fcbd3; }
.adsx-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; font-weight: 700; font-size: 17px; line-height: 1.4; color: #0b3a42; }
.adsx-faq summary::-webkit-details-marker { display: none; }
.adsx-faq summary::after { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: #0e5c6b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.2l4 4 4-4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .2s; }
.adsx-faq details[open] summary::after { transform: rotate(180deg); }
.adsx-faq summary:focus-visible { outline: 2px solid #14808f; outline-offset: -2px; }
.adsx-article .adsx-faq details > p { margin: 0; padding: 0 20px 18px; font-size: 16.5px; line-height: 1.65; }

/* --- Sidebar: Heft-Box (Funnel-One-Freebie im Magazin-Stil, Querformat-Bühne) --- */
.adsx-freebie .fo-fb--heft { background: #fff; border: 1px solid #d3e4e8; border-radius: 20px; overflow: hidden; }
.adsx-heft { position: relative; background: #dcedf0; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.adsx-heft::before { content: ""; position: absolute; left: -12%; bottom: -46%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: rgba(20,128,143,.16); }
.adsx-heft::after { content: ""; position: absolute; right: -10%; top: -40%; width: 48%; aspect-ratio: 1; border-radius: 50%; background: rgba(242,184,75,.28); }
.adsx-heft__tag { position: absolute; top: 12px; left: 12px; z-index: 3; background: #fff; color: #0e5c6b; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.adsx-heft img { position: relative; z-index: 2; height: 86%; width: auto; max-width: 70%; border-radius: 3px; transform: rotate(-4deg); box-shadow: 0 16px 30px rgba(6,38,44,.34), 4px 4px 0 -1px #fff, 5px 5px 0 -1px rgba(6,38,44,.2); }
html body .fo-fb--heft .fo-fb__body { padding: 20px; }
html body .fo-fb--heft .fo-fb__eyebrow { color: #0e5c6b; }
html body .fo-fb--heft .fo-fb__title { font-size: 21px; }
html body .fo-fb--heft .fo-fb__desc { display: block; -webkit-line-clamp: unset; overflow: visible; }
.adsx-heft-by { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #d3e4e8; font-size: 13.5px; line-height: 1.4; color: #475763; }
.adsx-heft-by img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #14808f; }
.adsx-heft-by b { display: block; color: #0b3a42; font-size: 14.5px; }
.adsx-popup__freebie .adsx-heft, .adsx-popup__freebie .adsx-heft-by { display: none !important; }

/* --- Sidebar: Über-mich-Kachel --- */
.adsx-about { background: #fff; border: 1px solid #d3e4e8; border-radius: 20px; padding: 20px; }
.adsx-about__label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5b6573; }
.adsx-about__head { display: flex; align-items: center; gap: 13px; margin: 14px 0 12px; }
.adsx-about__head img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: center 25%; flex: 0 0 auto; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #14808f; }
.adsx-about__head strong { display: block; font-size: 17px; line-height: 1.2; color: #0b3a42; }
.adsx-about__head span { display: block; font-size: 13px; line-height: 1.35; color: #475763; margin-top: 2px; }
.adsx-about p { margin: 0; font-size: 14px; line-height: 1.6; color: #26303d; }
.adsx-about__links { display: grid; gap: 8px; margin-top: 14px; }
.adsx-about__links a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; }
.adsx-about__links a:first-child { background: #0e5c6b; color: #fff; }
.adsx-about__links a:first-child:hover { background: #0b3a42; color: #fff; }
.adsx-about__links a:last-child { background: #f1f8f9; color: #0e5c6b; border: 1px solid #d3e4e8; }
.adsx-about__links a:last-child:hover { background: #e3f1f3; }
.adsx-stickwrap { display: flex; flex-direction: column; gap: 18px; }
.adsx-stickwrap #adsx-freebie { position: static; }
@media (min-width: 901px) and (min-height: 980px) { .adsx-stickwrap { position: sticky; top: 92px; align-self: start; } }

/* =====================================================================
   News-Übersicht und Kategorieseiten
   ===================================================================== */
.adsx-archive { background: linear-gradient(180deg, #edf9fb 0%, #fff 360px); }
.adsx-archive .adsx-archive__inner { max-width: 1240px; padding: 56px 24px 72px; }
.adsx-archive .adsx-archive__title { font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); }
.adsx-archive .adsx-archive__sub { margin-bottom: 38px; }
.adsx-sec { margin: 54px 0 0; }
.adsx-sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.adsx-sec__h h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: #0b3a42; margin: 0; letter-spacing: -.02em; }
.adsx-sec__h span { white-space: nowrap; font-size: 14px; color: #5b6573; }
.adsx-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.adsx-cat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; background: #fff; border: 1px solid #d3e4e8; border-radius: 20px; text-decoration: none; color: #0b3a42; transition: transform .2s, border-color .2s, background .2s; }
.adsx-cat:hover { transform: translateY(-3px); border-color: #14808f; background: #f6fafb; color: #0b3a42; }
.adsx-cat.is-current, .adsx-cat.is-current:hover { background: #0e5c6b; border-color: #0e5c6b; color: #fff; }
.adsx-cat__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #e3f1f3; color: #0e5c6b; margin-bottom: 10px; }
.adsx-cat.is-current .adsx-cat__icon { background: rgba(255,255,255,.16); color: #fff; }
.adsx-cat__icon svg { width: 28px; height: 28px; }
.adsx-cat__name { font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.adsx-cat__count { font-size: 14px; color: #475763; }
.adsx-cat.is-current .adsx-cat__count { color: #d6ebef; }
.adsx-cat__arrow { position: absolute; right: 20px; top: 24px; font-size: 20px; color: #14808f; transition: transform .2s; }
.adsx-cat.is-current .adsx-cat__arrow { color: #fff; }
.adsx-cat:hover .adsx-cat__arrow { transform: translateX(4px); }
.adsx-latest { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; }
.adsx-lead-card { position: relative; display: flex; flex-direction: column; background: #0b3a42; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; }
.adsx-lead-card:hover { color: #fff; }
.adsx-lead-card__media { aspect-ratio: 16 / 9; background: #0e5c6b; overflow: hidden; }
.adsx-lead-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.adsx-lead-card:hover .adsx-lead-card__media img { transform: scale(1.03); }
.adsx-lead-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.adsx-lead-card__badge { align-self: flex-start; background: #f2b84b; color: #2b1d00; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.adsx-lead-card__title { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: #fff; margin: 0; }
.adsx-lead-card__excerpt { font-size: 16px; line-height: 1.55; color: #d6ebef; margin: 0; }
.adsx-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: #5b6573; }
.adsx-lead-card .adsx-meta { color: #bfe0e6; margin-top: auto; }
.adsx-meta__cat { font-weight: 700; color: #0e5c6b; }
.adsx-lead-card .adsx-meta__cat { color: #fff; }
.adsx-stack { display: grid; gap: 14px; align-content: start; }
.adsx-mini { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; background: #fff; border: 1px solid #d3e4e8; border-radius: 18px; text-decoration: none; color: #0b3a42; transition: transform .2s, border-color .2s; }
.adsx-mini:hover { transform: translateY(-2px); border-color: #14808f; color: #0b3a42; }
.adsx-mini__media { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #e3f1f3; }
.adsx-mini__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adsx-mini__title { display: block; font-size: 16.5px; line-height: 1.3; font-weight: 700; margin: 4px 0 6px; color: #0b3a42; }
.adsx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.adsx-card3 { display: flex; flex-direction: column; background: #fff; border: 1px solid #d3e4e8; border-radius: 20px; overflow: hidden; text-decoration: none; color: #0b3a42; transition: transform .2s, border-color .2s; }
.adsx-card3:hover { transform: translateY(-3px); border-color: #14808f; color: #0b3a42; }
.adsx-card3__media { aspect-ratio: 16 / 10; background: #e3f1f3; overflow: hidden; }
.adsx-card3__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.adsx-card3:hover .adsx-card3__media img { transform: scale(1.04); }
.adsx-card3__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.adsx-card3__title { font-size: 19px; line-height: 1.28; font-weight: 800; letter-spacing: -.01em; margin: 0; color: #0b3a42; }
.adsx-card3__excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: #475763; }
.adsx-card3 .adsx-meta { margin-top: auto; padding-top: 4px; }
.adsx-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 40px 0 0; }
.adsx-pager a, .adsx-pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #d3e4e8; font-weight: 700; color: #0e5c6b; text-decoration: none; background: #fff; }
.adsx-pager .current { background: #0e5c6b; color: #fff; border-color: #0e5c6b; }
.adsx-pager a:hover { background: #e3f1f3; }

@media (max-width: 1040px) { .adsx-latest { grid-template-columns: 1fr; } .adsx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .adsx-archive .adsx-archive__inner { padding: 36px 16px 56px; }
  .adsx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .adsx-cat { padding: 16px 14px 14px; border-radius: 16px; }
  .adsx-cat__icon { width: 44px; height: 44px; margin-bottom: 4px; }
  .adsx-cat__name { font-size: 16px; }
  .adsx-cat__arrow { display: none; }
  .adsx-grid { grid-template-columns: 1fr; }
  .adsx-mini { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
  .adsx-mini__title { font-size: 15px; }
  .adsx-lead-card__body { padding: 20px 18px 22px; }
  .adsx-article .adsx-vs { grid-template-columns: 1fr; }
  .adsx-article ol.adsx-steps { grid-template-columns: 1fr; }
}

/* --- Feinschliff nach erstem Test (2026-11-02) --- */
.adsx .adsx-article h2 + p, .adsx .adsx-article h3 + p { margin-top: 18px; }
.adsx .adsx-callcard { background: #0e5c6b; color: #fff; }
.adsx .adsx-callcard .adsx-callcard__title { color: #fff; font-weight: 800; font-size: 1.1rem; }
.adsx .adsx-callcard .adsx-callcard__text { color: #e3f1f3; font-size: .92rem; line-height: 1.5; }
.adsx .adsx-callcard .adsx-callcard__btn { background: #fff; color: #0b3a42; font-weight: 700; border-radius: 999px; height: 46px; padding: 0 14px; }
.adsx .adsx-callcard .adsx-callcard__btn:hover { background: #e3f1f3; color: #0b3a42; filter: none; }
.adsx-heft { aspect-ratio: 16 / 10; display: block; }
.adsx-heft img { position: absolute; top: 7%; left: 50%; height: 86%; width: auto; max-width: none; transform: translateX(-50%) rotate(-4deg); }
.adsx-article .adsx-steps + *, .adsx-article .adsx-stats + *, .adsx-article .adsx-chart + *, .adsx-article .adsx-tablewrap + *, .adsx-article .adsx-check + *, .adsx-article .adsx-note + p, .adsx-article .adsx-vs + *, .adsx-article .adsx-quote + *, .adsx-article .adsx-faq + p { margin-top: 26px; }
.adsx-article .adsx-note + h2, .adsx-article .adsx-steps + h2, .adsx-article .adsx-chart + h2, .adsx-article .adsx-tablewrap + h2, .adsx-article .adsx-faq + h2 { margin-top: 52px; }
.adsx-article .adsx-note + p { margin-top: 26px; }
.adsx .adsx-article table.adsx-table th, .adsx .adsx-article table.adsx-table td { font-size: 15px; line-height: 1.5; }
.adsx .adsx-article table.adsx-table th { font-size: 13.5px; }
.adsx .adsx-heft img { height: 86% !important; width: auto !important; max-width: none !important; }
.adsx .adsx-article figure > img { width: 100%; max-height: 460px; object-fit: cover; object-position: center 25%; }
.adsx .adsx-heft img { left: 60% !important; }
.adsx .adsx-vs h4 { margin: 0 0 12px; }
@media (max-width: 600px) { .adsx-article .adsx-chart { overflow-x: auto; } .adsx-chart svg { min-width: 470px; } }
@media (max-width: 900px) { .adsx .adsx-body { grid-template-columns: minmax(0, 1fr); } .adsx-body > * { min-width: 0; } }
