/* dgm_section_cards (Netzwerk task 19, 2026-11-12, agent C): the styles of every card layout, complete in itself.
   Copied rule for rule from the audited draft files of Tools/NetzwerkRedesign/design/assets (selectors and values
   unchanged; nothing redesigned): groups/nachwuchs.css (cards, chips, steps, facts, year tiles, game variants,
   downloads), pages/54.css (audiences and offers), pages/215.css (partner cards), pages/35.css (the hub's ways in),
   netzwerk.css (tokens, text column, screen-reader text). What is new: the pictures sit IN the card (the pages laid a
   separate picture element over the card's empty picture box): .nwy-card__pic and .pt-card__fig take exactly the place
   of those figures, and the grids sit on the element's own list instead of the section's wrapper. */

/* ---------- tokens (netzwerk.css :root, pages/35.css #crm__widgets) and the element's frame ---------- */
.frame-type-dgm_section_cards {
  --nw-primary: #00abe3; --nw-deep: #007aa8; --nw-ink: #003e52; --nw-text: #0f172a; --nw-muted: #475569; --nw-border: rgb(227 232 236);
  --hb-muted: #5b6b7f; --hb-fast: 120ms; --hb-base: 220ms; --hb-slow: 320ms; --hb-ease: cubic-bezier(.2, .7, .2, 1);
  --hb-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 10px 30px -18px rgb(15 34 51 / .2); --hb-sk: #e6edf3;
}
/* as an html element in a section (about.css: the last one has no margin below) */
#crm__widgets#crm__widgets section.dgm-ex-root .frame-type-dgm_section_cards:last-child { margin-bottom: 0; }
/* audiences, offers and partners: the pages' picture technique left no frame box (display: contents), so no margin */
#crm__widgets .frame-type-dgm_section_cards:has(> :is(.nwy-aud, .nwy-off, .pt-grid)) { margin: 0 !important; padding: 0 !important; }
#crm__widgets .nw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ======================= the Nachwuchs card (groups/nachwuchs.css) ======================= */
.nwy-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--nw-border); border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 10px 30px -18px rgb(15 34 51 / .2); transition: border-color .2s ease, box-shadow .2s ease; }
.nwy-card__ph { flex: none; }
.nwy-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 22px; }
.nwy-card__title { margin: 0; color: #0f172a; font: 700 18px/1.3 Heading-Font, "Inter Tight", Inter, sans-serif; letter-spacing: -.2px; text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; }
.nwy-card__text { margin: 10px 0 0; color: #475569; font: 400 15px/1.6 Theme-Font, Inter, sans-serif; text-wrap: pretty; }
.nwy-card__text a { position: relative; z-index: 2; color: #00abe3; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nwy-card__link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding-top: 16px; color: #00abe3 !important; font: 600 15px/1.3 Theme-Font, Inter, sans-serif; text-decoration: none; }
.nwy-card__link i { font-size: 12px; transition: transform .2s ease; }
.nwy-card__link::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 16px; }
.nwy-card__link:focus-visible { outline: none; }
.nwy-card:has(.nwy-card__link:focus-visible) { outline: 2px solid #003e52; outline-offset: 3px; }
@media (hover: hover) {
  .nwy-card:hover { border-color: rgb(0 171 227 / .45); box-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 22px 44px -22px rgb(0 33 44 / .38); }
  .nwy-card:hover .nwy-card__link { text-decoration: underline; text-underline-offset: 4px; }
  .nwy-card:hover .nwy-card__link i { transform: translateX(3px); }
}
.nwy-card__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.nwy-card__facts li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px 4px 9px; border-radius: 999px; background: rgb(0 171 227 / .09);
  color: #00475e; font: 600 12.5px/1.35 Theme-Font, Inter, sans-serif; white-space: nowrap; }
.nwy-card__facts i { color: #00abe3; font-size: 11px; }

/* ---------- picture cards and short cards (groups/nachwuchs.css) ---------- */
.nws-cards { display: grid; gap: 24px; align-items: stretch; width: 100%; }
.nws-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nws-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nws-card__ph { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin: 0; border-radius: 15px 15px 0 0; background: #e7f4fa; }
.nws-card__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nws-card__ph--contain { display: flex; align-items: center; justify-content: center; padding: 18px;
  background: radial-gradient(circle at 50% 40%, #fff, rgb(255 255 255 / 0) 70%), linear-gradient(160deg, #eef8fc, #d9f0f9); }
.nws-card__ph--contain img { width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: 3px; box-shadow: 0 1px 2px rgb(0 33 44 / .2), 0 16px 30px -14px rgb(0 33 44 / .45); }
.nws-icard__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: rgb(0 171 227 / .1); color: #00abe3; font-size: 18px; }
@media (max-width: 1199.98px) { .nws-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023.98px) { .nws-cards--3 { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
@media (max-width: 639.98px) { .nws-cards--4 { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---------- game variants: longer rich text (groups/nachwuchs.css) ---------- */
.nws-variant__text { margin-top: 10px; color: #475569; font: 400 15px/1.6 Theme-Font, Inter, sans-serif; }
.nws-variant__text p { margin: 0; }
.nws-variant__text p + p, .nws-variant__text ul + p { margin-top: .8em; }
.nws-variant__text strong { color: #0f172a; font-weight: 700; }
.nws-variant__text ul { margin: .4em 0 0; padding-left: 1.1em; }
.nws-variant__text li { margin: .2em 0; }

/* ---------- downloads: cards with their file lists (groups/nachwuchs.css) ---------- */
.nws-dl__list { display: grid; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.nws-dl__list li { margin: 0; }
.nws-dl__list a { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; align-items: start; padding: 9px 12px; border-radius: 10px; background: rgb(0 171 227 / .05);
  color: #0f172a !important; text-decoration: none; transition: background-color .2s ease; }
.nws-dl__list a:hover { background: rgb(0 171 227 / .12); }
.nws-dl__list a:focus-visible { outline: 2px solid #003e52; outline-offset: 2px; }
.nws-dl__list i { grid-row: 1 / 3; margin-top: 2px; color: #00abe3; font-size: 16px; text-align: center; }
.nws-dl__name { font: 600 14px/1.4 Theme-Font, Inter, sans-serif; overflow-wrap: break-word; }
.nws-dl__meta { color: #475569; font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }

/* ======================= numbered steps (groups/nachwuchs.css), facts below them ======================= */
.nwy-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.nwy-steps::before { content: ""; position: absolute; z-index: 0; top: 46px; left: 8%; right: 8%; border-top: 2px dashed rgb(0 171 227 / .35); }
.nwy-step { position: relative; z-index: 1; margin: 0; padding: 26px 24px 26px; border: 1px solid var(--nw-border); border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 10px 30px -18px rgb(15 34 51 / .2); }
.nwy-step__n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 999px; background: #00abe3; color: #fff;
  font: 800 17px/1 Heading-Font, "Inter Tight", Inter, sans-serif; box-shadow: 0 0 0 6px rgb(0 171 227 / .12); }
.nwy-step__title { margin: 0; color: #0f172a; font: 700 18px/1.3 Heading-Font, "Inter Tight", Inter, sans-serif; letter-spacing: -.2px; text-wrap: balance; }
.nwy-step__text { margin: 8px 0 0; color: #475569; font: 400 15px/1.6 Theme-Font, Inter, sans-serif; text-wrap: pretty; }
@media (max-width: 1023.98px) {
  .nwy-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nwy-steps::before { top: 24px; bottom: 24px; left: 44px; right: auto; border-top: 0; border-left: 2px dashed rgb(0 171 227 / .35); }
  .nwy-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; padding: 22px; }
  .nwy-step__n { grid-row: 1 / 3; margin: 0; }
}
@media (min-width: 1024px) { .nwy-steps.nws-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .nwy-steps.nws-steps--4::before { left: 6%; right: 6%; } }
.nws-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.nws-facts li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1px solid var(--nw-border); border-radius: 999px; background: #fff;
  color: #334155; font: 400 15px/1.35 Theme-Font, Inter, sans-serif; box-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 8px 20px -16px rgb(15 34 51 / .3); }
.nws-facts i { color: #00abe3; font-size: 14px; }
.nws-facts__k { color: #003e52; font-weight: 700; }
@media (max-width: 639.98px) { .nws-facts { flex-direction: column; align-items: stretch; } .nws-facts li { border-radius: 14px; } }

/* ======================= year tiles with the text above (groups/nachwuchs.css, netzwerk.css .nw-text) ======================= */
#crm__widgets .nw-text { width: min(680px, 100vw - 48px); margin: 0 calc((100% - min(680px, 100vw - 48px)) / 2); color: var(--nw-text); font: 400 17px/1.7 Theme-Font, Inter, sans-serif; }
#crm__widgets .nw-text p + p { margin-top: 1em; }
#crm__widgets .nw-text a { color: var(--nw-primary); font-weight: 600; }
#crm__widgets .nws-text p { margin: 0; }
#crm__widgets .nws-text p + p { margin-top: 1em; }
.nws-years__lead { margin-bottom: 32px !important; text-align: center; }
.nws-years { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; width: 100%; margin: 0; padding: 0; list-style: none; }
.nws-years__item { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 18px 18px 16px; border: 1px solid var(--nw-border); border-radius: 14px; background: #fff;
  box-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 10px 26px -20px rgb(15 34 51 / .3); }
.nws-years__item::before { content: ""; position: absolute; top: 0; left: 18px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: #7fd8f5; }
.nws-years__item.is-latest::before { background: #00abe3; }
.nws-years__y { color: #003e52; font: 800 26px/1.1 Heading-Font, "Inter Tight", Inter, sans-serif; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.nws-years__p { color: #0f172a; font: 600 15px/1.35 Theme-Font, Inter, sans-serif; overflow-wrap: anywhere; }
@media (max-width: 1023.98px) { .nws-years { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .nws-years { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .nws-years__y { font-size: 22px; } }

/* ======================= audiences and offers of the Nachwuchs page (pages/54.css) =======================
   The page laid the cards and a picture element into ONE grid of the section's wrapper. Here the grid is the element's
   list (.nwy-aud / .nwy-off, a size container), each card keeps its empty picture box (.nwy-card__ph) for the layout and
   carries its picture as a figure (.nwy-card__pic) at the place and size the page's figure had: over the picture box,
   or beside the text (absolute: top 0, bottom 0, left 0, width = n % of the cell minus 1px). The page's figure also set
   the row's height when the picture beside the text was taller than the text: the card's min-height repeats that from
   the picture's ratio (--nwy-ih / --nwy-iw, written by the template). */
#crm__widgets :is(.nwy-aud, .nwy-off) { container-type: inline-size; display: grid; gap: 24px; align-items: stretch; }
#crm__widgets .nwy-card__pic { position: absolute; z-index: 1; top: 0; left: 0; right: 0; margin: 0; overflow: hidden; border-radius: 15px 15px 0 0; background: #e7f4fa; pointer-events: none; }
#crm__widgets .nwy-card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the pages' pictures were core "Bilder" elements, whose img (.image-embed-item) the site rounds by 8px: the figure
   clips the top corners, the bottom ones stay round. The same here (the cover below keeps its own 3px) */
#crm__widgets .nwy-card__pic img { border-radius: 8px; }

/* ---------- audiences: three cards, 4:3 pictures ---------- */
#crm__widgets .nwy-aud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#crm__widgets .nwy-aud :is(.nwy-card__ph, .nwy-card__pic) { aspect-ratio: 4 / 3; }
.nwy-aud__card[data-i="1"] { grid-area: 1 / 1; }
.nwy-aud__card[data-i="2"] { grid-area: 1 / 2; }
.nwy-aud__card[data-i="3"] { grid-area: 1 / 3; }

/* ---------- offers: 1200px+: 7 + 5 | 4 + 4 + 4 | 6 + 6 (the last row with the picture beside the text) ---------- */
#crm__widgets .nwy-off { grid-template-columns: repeat(12, minmax(0, 1fr)); --nwy-h1: 300px; --nwy-h2: 216px; }
#crm__widgets .nwy-off .nwy-card__title { font-size: 19px; }
#crm__widgets .nwy-off__card:is([data-i="1"], [data-i="2"]) .nwy-card__title { font-size: 22px; letter-spacing: -.4px; }
#crm__widgets .nwy-off__card[data-i="1"] { grid-area: 1 / 1 / 2 / 8; }
#crm__widgets .nwy-off__card[data-i="2"] { grid-area: 1 / 8 / 2 / 13; }
#crm__widgets .nwy-off__card[data-i="3"] { grid-area: 2 / 1 / 3 / 5; }
#crm__widgets .nwy-off__card[data-i="4"] { grid-area: 2 / 5 / 3 / 9; }
#crm__widgets .nwy-off__card[data-i="5"] { grid-area: 2 / 9 / 3 / 13; }
#crm__widgets .nwy-off__card[data-i="6"] { grid-area: 3 / 1 / 4 / 7; }
#crm__widgets .nwy-off__card[data-i="7"] { grid-area: 3 / 7 / 4 / 13; }
#crm__widgets .nwy-off__card:is([data-i="1"], [data-i="2"]) :is(.nwy-card__ph, .nwy-card__pic) { height: var(--nwy-h1); }
#crm__widgets .nwy-off__card:is([data-i="3"], [data-i="4"], [data-i="5"]) :is(.nwy-card__ph, .nwy-card__pic) { height: var(--nwy-h2); }
/* the last row: picture left (40 %), text right */
#crm__widgets .nwy-off__card:is([data-i="6"], [data-i="7"]) { padding-left: 40%; min-height: max(280px, calc((.4 * (50cqw - 12px) - 1px) * var(--nwy-ih, 0) / var(--nwy-iw, 1) + 2px)); }
#crm__widgets .nwy-off__card:is([data-i="6"], [data-i="7"]) .nwy-card__ph { display: none; }
#crm__widgets .nwy-off__card:is([data-i="6"], [data-i="7"]) .nwy-card__pic { bottom: 0; right: auto; width: calc((100% + 2px) * .4 - 1px); height: auto; border-radius: 15px 0 0 15px; }
/* the laureate: his face stays in the picture wherever the box is wider than the crop */
#crm__widgets .nwy-off__card[data-i="7"] .nwy-card__pic img { object-position: 50% 12%; }
/* a picture shown whole (Item subtype "contain"; the study guide's cover): on a light ground, with a paper shadow */
#crm__widgets .nwy-card__pic--contain { display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 50% 40%, #fff, rgb(255 255 255 / 0) 70%), linear-gradient(160deg, #eef8fc, #d9f0f9); }
#crm__widgets .nwy-card__pic--contain img { width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: 3px; box-shadow: 0 1px 2px rgb(0 33 44 / .2), 0 16px 30px -14px rgb(0 33 44 / .45); }

/* 640 to 1199: the forum as a wide card with the picture beside the text, then two per row */
@media (max-width: 1199.98px) {
  #crm__widgets .nwy-off { grid-template-columns: repeat(2, minmax(0, 1fr)); --nwy-h2: 220px; }
  #crm__widgets .nwy-off__card[data-i="1"] { grid-area: 1 / 1 / 2 / 3; }
  #crm__widgets .nwy-off__card[data-i="2"] { grid-area: 2 / 1; }
  #crm__widgets .nwy-off__card[data-i="3"] { grid-area: 2 / 2; }
  #crm__widgets .nwy-off__card[data-i="4"] { grid-area: 3 / 1; }
  #crm__widgets .nwy-off__card[data-i="5"] { grid-area: 3 / 2; }
  #crm__widgets .nwy-off__card[data-i="6"] { grid-area: 4 / 1; }
  #crm__widgets .nwy-off__card[data-i="7"] { grid-area: 4 / 2; }
  #crm__widgets .nwy-off__card[data-i="1"] { padding-left: 50%; min-height: max(320px, calc((50cqw - 1px) * var(--nwy-ih, 0) / var(--nwy-iw, 1) + 2px)); }
  #crm__widgets .nwy-off__card[data-i="1"] .nwy-card__ph { display: none; }
  #crm__widgets .nwy-off__card[data-i="1"] .nwy-card__pic { bottom: 0; right: auto; width: calc((100% + 2px) * .5 - 1px); height: auto; border-radius: 15px 0 0 15px; }
  #crm__widgets .nwy-off__card:not([data-i="1"]) :is(.nwy-card__ph, .nwy-card__pic) { height: var(--nwy-h2); }
  #crm__widgets .nwy-off__card:is([data-i="6"], [data-i="7"]) { padding-left: 0; min-height: 0; }
  #crm__widgets .nwy-off__card:is([data-i="6"], [data-i="7"]) .nwy-card__ph { display: block; }
  #crm__widgets .nwy-off__card:is([data-i="6"], [data-i="7"]) .nwy-card__pic { bottom: auto; right: 0; width: auto; border-radius: 15px 15px 0 0; }
  #crm__widgets .nwy-off__card[data-i="2"] .nwy-card__title { font-size: 19px; letter-spacing: -.2px; }
}
/* phones: one column, every picture 16:10 on top */
@media (max-width: 767.98px) {
  #crm__widgets :is(.nwy-aud, .nwy-off) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .nwy-aud__card[data-i="2"] { grid-area: 2 / 1; }
  .nwy-aud__card[data-i="3"] { grid-area: 3 / 1; }
  #crm__widgets .nwy-off__card[data-i] { padding-left: 0; min-height: 0; }
  #crm__widgets .nwy-off__card[data-i] .nwy-card__ph { display: block; height: auto; aspect-ratio: 16 / 10; }
  #crm__widgets .nwy-off__card[data-i] .nwy-card__pic { bottom: auto !important; right: 0 !important; width: auto !important; height: auto !important; aspect-ratio: 16 / 10; border-radius: 15px 15px 0 0 !important; }
  #crm__widgets .nwy-off__card[data-i="1"] { grid-area: 1 / 1; }
  #crm__widgets .nwy-off__card[data-i="2"] { grid-area: 2 / 1; }
  #crm__widgets .nwy-off__card[data-i="3"] { grid-area: 3 / 1; }
  #crm__widgets .nwy-off__card[data-i="4"] { grid-area: 4 / 1; }
  #crm__widgets .nwy-off__card[data-i="5"] { grid-area: 5 / 1; }
  #crm__widgets .nwy-off__card[data-i="6"] { grid-area: 6 / 1; }
  #crm__widgets .nwy-off__card[data-i="7"] { grid-area: 7 / 1; }
  #crm__widgets .nwy-off__card[data-i] .nwy-card__title { font-size: 18px; letter-spacing: -.2px; }
  /* (pages/54.css set this for every card of that page; here for the two Nachwuchs layouts only) */
  #crm__widgets :is(.nwy-aud, .nwy-off) .nwy-card__body { padding: 18px 20px 20px; }
}
@media (max-width: 639.98px) {
  #crm__widgets .nwy-aud :is(.nwy-card__ph, .nwy-card__pic) { aspect-ratio: 16 / 10; }
}
/* 640 to 1023: the audiences one under the other, picture left (36 %), text right */
@media (min-width: 640px) and (max-width: 1023.98px) {
  #crm__widgets .nwy-aud { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .nwy-aud__card[data-i="2"] { grid-area: 2 / 1; }
  .nwy-aud__card[data-i="3"] { grid-area: 3 / 1; }
  #crm__widgets .nwy-aud__card { padding-left: 36%; min-height: max(236px, calc((36cqw - 1px) * var(--nwy-ih, 0) / var(--nwy-iw, 1) + 2px)); }
  #crm__widgets .nwy-aud__card .nwy-card__ph { display: none; }
  #crm__widgets .nwy-aud__card .nwy-card__pic { bottom: 0; right: auto; width: calc((100% + 2px) * .36 - 1px); aspect-ratio: auto; border-radius: 15px 0 0 15px; }
}

/* ======================= partner cards with a logo (pages/215.css) ======================= */
/* the section: no head of its own (the page head says it), the light band */
#crm__widgets > section.dgm-ex-root:has(.pt-grid) > div > header { display: none; }
#crm__widgets > section.dgm-ex-root:has(.pt-grid) { padding-top: 56px; padding-bottom: 96px; }
#crm__widgets .pt-grid { --pt-logo-h: 136px; --pt-inset: 12px; --pt-k: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
#crm__widgets .pt-card { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid var(--nw-border); border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 10px 30px -18px rgb(15 34 51 / .2); transition: border-color .2s ease, box-shadow .2s ease; }
@media (hover: hover) {
  #crm__widgets .pt-card:hover { border-color: rgb(0 171 227 / .45); box-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 22px 44px -22px rgb(0 33 44 / .38); }
  #crm__widgets .pt-card:hover .pt-card__label { text-decoration: underline; text-underline-offset: 4px; }
  #crm__widgets .pt-card:hover .pt-card__link i { transform: translate(2px, -2px); }
}
#crm__widgets .pt-card__logo { flex: none; height: var(--pt-logo-h); margin: var(--pt-inset) var(--pt-inset) 0; border-radius: 11px;
  background: radial-gradient(120% 140% at 50% 0%, #fff 0%, #f8fbfd 55%, #f1f7fa 100%); box-shadow: inset 0 0 0 1px rgb(0 62 82 / .05); }
#crm__widgets .pt-card__wordmark { display: grid; place-items: center; height: 100%; padding: 0 24px; color: var(--nw-ink); font: 800 26px/1.15 Heading-Font, "Inter Tight", Inter, sans-serif; letter-spacing: -.5px; text-align: center; }
#crm__widgets .pt-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 24px 22px; }
#crm__widgets .pt-card__name { margin: 0; color: #0f172a; font: 700 19px/1.3 Heading-Font, "Inter Tight", Inter, sans-serif; letter-spacing: -.2px; text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; }
#crm__widgets .pt-card__text { margin: 10px 0 0; color: #475569; font: 400 15px/1.6 Theme-Font, Inter, sans-serif; text-wrap: pretty; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 14 6 6; }
#crm__widgets .pt-card__text a { position: relative; z-index: 2; color: #00abe3; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#crm__widgets .pt-card__foot { display: flex; align-items: flex-start; margin-top: auto; padding-top: 18px; }
#crm__widgets .pt-card__link { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: #00abe3 !important; font: 600 15px/1.35 Theme-Font, Inter, sans-serif; text-decoration: none; }
#crm__widgets .pt-card__link::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 16px; }
#crm__widgets .pt-card__link i { align-self: center; font-size: 11px; transition: transform .2s ease; }
#crm__widgets .pt-card__host { color: #64748b; font: 500 13px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: 0; }
#crm__widgets .pt-card__link:focus-visible { outline: none; }
#crm__widgets .pt-card:has(.pt-card__link:focus-visible) { outline: 2px solid #003e52; outline-offset: 3px; }
#crm__widgets .pt-card__more { position: relative; z-index: 2; display: inline-flex; align-self: flex-start; margin-top: 12px; align-items: center; gap: 8px; color: #007aa8 !important; font: 600 14px/1.35 Theme-Font, Inter, sans-serif; text-decoration: underline; text-decoration-color: rgb(0 122 168 / .35); text-underline-offset: 3px; }
#crm__widgets .pt-card__more i { font-size: 11px; }
#crm__widgets .pt-card__more:hover { text-decoration-color: currentColor; }
#crm__widgets .pt-card__more:focus-visible { outline: 2px solid #003e52; outline-offset: 3px; border-radius: 4px; }
/* the logo: over the card's logo box (the page's figure: inset + 1px into the cell = inset into the card), never touching
   its edge, never stretched; its size on the card = --w x --h (Value of the item) scaled by --pt-k */
#crm__widgets .pt-card__fig { position: absolute; top: var(--pt-inset); left: var(--pt-inset); right: var(--pt-inset); display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: var(--pt-logo-h); margin: 0; padding: 16px 20px; overflow: hidden; pointer-events: none; }
#crm__widgets .pt-card__fig img { border-radius: 8px; display: block; width: min(calc(var(--w) * var(--pt-k)), 100%); height: min(calc(var(--h) * var(--pt-k)), 100%); max-width: none; object-fit: contain; mix-blend-mode: multiply; }
.pt-card[data-i="1"] { grid-area: 1 / 1; } .pt-card[data-i="2"] { grid-area: 1 / 2; } .pt-card[data-i="3"] { grid-area: 1 / 3; }
.pt-card[data-i="4"] { grid-area: 2 / 1; } .pt-card[data-i="5"] { grid-area: 2 / 2; } .pt-card[data-i="6"] { grid-area: 2 / 3; }
.pt-card[data-i="7"] { grid-area: 3 / 1; } .pt-card[data-i="8"] { grid-area: 3 / 2; } .pt-card[data-i="9"] { grid-area: 3 / 3; }
@media (min-width: 1024px) and (max-width: 1199.98px) {
  #crm__widgets .pt-grid { gap: 20px; --pt-logo-h: 124px; --pt-k: .92; }
  #crm__widgets .pt-card__body { padding: 18px 20px 20px; }
}
/* 640 to 1023: two columns; the ninth card spans both, logo left, text right (no lone card in the last row) */
@media (max-width: 1023.98px) {
  #crm__widgets .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; --pt-logo-h: 128px; }
  .pt-card[data-i="1"] { grid-area: 1 / 1; } .pt-card[data-i="2"] { grid-area: 1 / 2; } .pt-card[data-i="3"] { grid-area: 2 / 1; }
  .pt-card[data-i="4"] { grid-area: 2 / 2; } .pt-card[data-i="5"] { grid-area: 3 / 1; } .pt-card[data-i="6"] { grid-area: 3 / 2; }
  .pt-card[data-i="7"] { grid-area: 4 / 1; } .pt-card[data-i="8"] { grid-area: 4 / 2; }
  .pt-card[data-i="9"] { grid-area: 5 / 1 / 6 / 3; }
  #crm__widgets .pt-card[data-i="9"] { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: stretch; }
  #crm__widgets .pt-card[data-i="9"] .pt-card__logo { height: auto; min-height: var(--pt-logo-h); margin: var(--pt-inset) 0 var(--pt-inset) var(--pt-inset); }
  #crm__widgets .pt-card[data-i="9"] .pt-card__fig { bottom: var(--pt-inset); right: auto; width: calc(100% * 2 / 5 - var(--pt-inset)); height: auto; min-height: var(--pt-logo-h); }
}
@media (max-width: 639.98px) {
  #crm__widgets .pt-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; --pt-logo-h: 112px; --pt-inset: 10px; --pt-k: .86; }
  .pt-card[data-i="1"] { grid-area: 1 / 1; } .pt-card[data-i="2"] { grid-area: 2 / 1; } .pt-card[data-i="3"] { grid-area: 3 / 1; }
  .pt-card[data-i="4"] { grid-area: 4 / 1; } .pt-card[data-i="5"] { grid-area: 5 / 1; } .pt-card[data-i="6"] { grid-area: 6 / 1; }
  .pt-card[data-i="7"] { grid-area: 7 / 1; } .pt-card[data-i="8"] { grid-area: 8 / 1; } .pt-card[data-i="9"] { grid-area: 9 / 1; }
  #crm__widgets .pt-card[data-i="9"] { display: flex; }
  #crm__widgets .pt-card[data-i="9"] .pt-card__logo { height: var(--pt-logo-h); min-height: 0; margin: var(--pt-inset) var(--pt-inset) 0; }
  #crm__widgets .pt-card[data-i="9"] .pt-card__fig { bottom: auto; right: var(--pt-inset); width: auto; height: var(--pt-logo-h); min-height: 0; }
  #crm__widgets .pt-card__body { padding: 16px 18px 18px; }
  #crm__widgets .pt-card__name { font-size: 18px; }
  #crm__widgets > section.dgm-ex-root:has(.pt-grid) { padding-top: 40px; padding-bottom: 72px; }
}
@media (max-width: 359.98px) {
  #crm__widgets .pt-grid { --pt-logo-h: 100px; --pt-k: .8; }
  #crm__widgets .pt-card__fig { padding: 14px 16px; }
}

/* ======================= the hub's ways in: a picture mosaic (pages/35.css) ======================= */
#crm__widgets .hb-ways { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
#crm__widgets .hb-ways { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; width: min(1152px, 100vw - 48px); margin: 0 calc((100% - min(1152px, 100vw - 48px)) / 2); padding: 0; list-style: none; text-align: left; }
#crm__widgets .hb-way { display: flex; margin: 0; grid-column: span 6; }
@media (min-width: 1024px) {
  #crm__widgets .hb-way--wide { grid-column: span 7; }
  #crm__widgets .hb-way--narrow { grid-column: span 5; }
  #crm__widgets .hb-way--side { grid-column: span 6; }
}
#crm__widgets .hb-way__a { display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--nw-border); border-radius: 16px; background: #fff; color: #0f172a; text-decoration: none; box-shadow: var(--hb-shadow);
  transition: box-shadow var(--hb-base) var(--hb-ease), border-color var(--hb-fast) var(--hb-ease); }
#crm__widgets .hb-way__a:hover { border-color: rgb(0 171 227 / .45); box-shadow: 0 1px 2px rgb(15 34 51 / .05), 0 28px 50px -30px rgb(0 33 44 / .45); }
#crm__widgets .hb-way__a:focus-visible { outline: 2px solid #00abe3; outline-offset: 3px; }
#crm__widgets .hb-way__pic { position: relative; display: block; height: 300px; overflow: hidden; background: var(--hb-sk); }
#crm__widgets .hb-way__pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--hb-op, 50% 50%); transition: transform .6s var(--hb-ease); }
#crm__widgets .hb-way__a:hover .hb-way__pic img { transform: scale(1.03); }
#crm__widgets .hb-way__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 40px 28px 26px; }
#crm__widgets .hb-way__icon { position: absolute; top: -26px; left: 28px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: #00abe3; font-size: 20px;
  box-shadow: 0 0 0 1px rgb(227 232 236), 0 12px 24px -12px rgb(0 33 44 / .35); }
#crm__widgets .hb-way__title { color: #0f172a; font: 700 22px/1.25 Heading-Font, "Inter Tight", Inter, sans-serif; letter-spacing: -.3px; transition: color var(--hb-fast) var(--hb-ease); }
#crm__widgets .hb-way__a:hover .hb-way__title { color: #007aa8; }
#crm__widgets .hb-way__text { margin-top: 10px; color: #475569; font: 400 16px/1.6 Theme-Font, Inter, sans-serif; }
#crm__widgets .hb-way__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: #00abe3; font: 600 15px/1.3 Theme-Font, Inter, sans-serif; }
#crm__widgets .hb-way__go i { font-size: 11px; transition: transform var(--hb-base) var(--hb-ease); }
#crm__widgets .hb-way__a:hover .hb-way__go i { transform: translateX(3px); }
@media (max-width: 1023.98px) { #crm__widgets .hb-way__pic { height: auto; aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) {
  #crm__widgets .hb-way--side .hb-way__a { flex-direction: row; min-height: 264px; }
  #crm__widgets .hb-way--side .hb-way__pic { flex: 0 0 42%; height: auto; }
  #crm__widgets .hb-way--side .hb-way__body { padding: 28px 28px 26px 48px; }
  #crm__widgets .hb-way--side .hb-way__icon { top: 28px; left: -26px; }
}
@media (max-width: 639.98px) {
  #crm__widgets .hb-ways { gap: 16px; }
  #crm__widgets .hb-way { grid-column: 1 / -1; }
  #crm__widgets .hb-way__body { padding: 36px 20px 22px; }
  #crm__widgets .hb-way__icon { left: 20px; width: 48px; height: 48px; top: -24px; font-size: 18px; }
  #crm__widgets .hb-way__title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .nwy-card, .nwy-card__link i { transition: none; }
  #crm__widgets .pt-card, #crm__widgets .pt-card__link i { transition: none; }
  .nws-dl__list a { transition: none; }
  #crm__widgets .hb-way__pic img { transition: none; } #crm__widgets .hb-way__a:hover .hb-way__pic img { transform: none; }
}

/* ---------- layouts "portals" and "links" (Themen task 20, 2026-11-12, agent D): portalsV2() and linkList() of
   Tools/ThemenRedesign/design/lib-themen.php (the hub); their rules of themen.css, classes tm-* renamed th-*, tokens --th-* ---------- */
.frame-type-dgm_section_cards { --th-primary: #00abe3; --th-deep: #007aa8; --th-ink: #003e52; --th-text: #0f172a; --th-muted: #475569; --th-border: rgb(227 232 236); --th-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 10px 30px -18px rgb(15 34 51 / .2); --th-grid: min(1152px, 100vw - 48px); }
#crm__widgets .th-portals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; width: min(1200px, 100vw - 48px); margin: 0 calc((100% - min(1200px, 100vw - 48px)) / 2); padding: 0; list-style: none; }
#crm__widgets .th-portal { margin: 0; }
#crm__widgets .th-portal a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--th-border); border-radius: 22px; background: #fff; overflow: hidden; color: var(--th-text); text-decoration: none;
  box-shadow: 0 30px 60px -40px rgb(0 33 44 / .5); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
#crm__widgets .th-portal a:hover, #crm__widgets .th-portal a:focus-visible { transform: translateY(-6px); border-color: rgb(0 171 227 / .5); box-shadow: 0 40px 70px -40px rgb(0 33 44 / .6); }
#crm__widgets .th-portal a:focus-visible { outline: 3px solid var(--th-primary); outline-offset: 3px; }
#crm__widgets .th-portal__pic { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #00212c; }
#crm__widgets .th-portal__pic img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.88); transition: filter .4s, transform .6s cubic-bezier(.2, .7, .2, 1); }
#crm__widgets .th-portal a:hover .th-portal__pic img, #crm__widgets .th-portal a:focus-visible .th-portal__pic img { filter: brightness(1.06); transform: scale(1.04); }
#crm__widgets .th-portal__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
#crm__widgets .th-portal__title { margin: 0; font: 700 20px/1.2 Heading-Font, "Inter Tight", Inter, sans-serif; letter-spacing: -.4px; hyphens: auto; }
#crm__widgets .th-portal__text { margin: 0; color: var(--th-muted); font: 400 14.5px/1.55 Theme-Font, Inter, sans-serif; }
#crm__widgets .th-portal__go { margin-top: auto; padding-top: 6px; color: var(--th-primary); font: 600 14.5px/1.3 Theme-Font, Inter, sans-serif; }
@media (max-width: 1099.98px) { #crm__widgets .th-portals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { #crm__widgets .th-portals { grid-template-columns: minmax(0, 1fr); } #crm__widgets .th-portal__pic { aspect-ratio: 16 / 10; } }
@media (min-width: 600px) { #crm__widgets .th-portals { grid-auto-rows: 1fr; } }
/* the portals overlap the hero's lower edge a little (themen.css) */
@media (min-width: 1024px) { #crm__widgets#crm__widgets > section.dgm-ex-root:has(.th-portals) { margin-top: -96px; padding-top: 0; position: relative; z-index: 20; } }
@media (max-width: 1023.98px) { #crm__widgets#crm__widgets > section.dgm-ex-root:has(.th-portals) { padding-top: 40px; } }
#crm__widgets .th-portal { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
#crm__widgets :is(.th-portal__title, .th-portal__text) { min-width: 0; max-width: 100%; }
#crm__widgets .th-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: var(--th-grid); margin: 0 calc((100% - var(--th-grid)) / 2); padding: 8px 24px; list-style: none;
  border: 1px solid var(--th-border); border-radius: 16px; background: #fff; box-shadow: var(--th-shadow); column-gap: 40px; }
#crm__widgets .th-list li { margin: 0; border-bottom: 1px solid var(--th-border); }
#crm__widgets .th-list li:nth-last-child(-n + 2):nth-child(odd), #crm__widgets .th-list li:last-child { border-bottom: 0; }
#crm__widgets .th-list__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 16px; align-items: center; padding: 18px 4px; color: var(--th-text); text-decoration: none; }
#crm__widgets .th-list__row:hover .th-list__title { color: var(--th-primary); }
#crm__widgets .th-list__row:focus-visible { outline: 2px solid var(--th-primary); outline-offset: 2px; border-radius: 10px; }
#crm__widgets .th-list__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgb(0 171 227 / .1); color: var(--th-primary); }
#crm__widgets .th-list__text { display: grid; gap: 3px; min-width: 0; }
#crm__widgets .th-list__title { color: var(--th-text); font: 700 16px/1.35 Heading-Font, "Inter Tight", Inter, sans-serif; transition: color .2s; }
#crm__widgets .th-list__desc { color: var(--th-muted); font: 400 14.5px/1.55 Theme-Font, Inter, sans-serif; }
#crm__widgets .th-list__arrow { color: var(--th-primary); font-size: 13px; transition: transform .2s; }
#crm__widgets .th-list__row:hover .th-list__arrow { transform: translateX(3px); }
@media (max-width: 767.98px) { #crm__widgets .th-list { grid-template-columns: minmax(0, 1fr); padding: 4px 18px; } #crm__widgets .th-list li:nth-last-child(-n + 2):nth-child(odd) { border-bottom: 1px solid var(--th-border); } #crm__widgets .th-list li:last-child { border-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { #crm__widgets .th-portal a, #crm__widgets .th-portal__pic img { transition: none !important; transform: none !important; } }

/* Akademie task B2 (2026-11-13): option count_types, the number of upcoming courses under a topic portal or a list row */
#crm__widgets .th-portal__count { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; color: #00658a; font: 600 15px/1.35 Theme-Font, Inter, sans-serif; font-variant-numeric: tabular-nums; }
#crm__widgets .th-portal__count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #00abe3; }
#crm__widgets .th-list__count { color: #00658a; font: 600 14px/1.35 Theme-Font, Inter, sans-serif; font-variant-numeric: tabular-nums; }

/* Akademie task P2 (2026-11-13), option portal_crop: portals that stand in the flow below their section's own head (the
   Akademie's topic overview) do not reach up into the hero as the Themen hub's do; only lists with the class --flow */
#crm__widgets#crm__widgets > section.dgm-ex-root:has(.th-portals--flow) { margin-top: 0; padding-top: var(--s, clamp(56px, 41px + 4.38vw, 112px)); position: static; z-index: auto; }
