/* Content element dgm_section_hero_map (Tools/NetzwerkRedesign brief 19, 2026-11-12): styles of the bright hero with the
   map of Germany. Copied unchanged from the hero part of Tools/NetzwerkRedesign/design/assets/pages/53.css (lines 6 to
   109, the audited html hero of the Regionalforen page); the element template writes the same markup. Everything is
   scoped to .rfh (two rules outside it: the html frame that holds .rfh gets full width, and the section pill menu after
   it overlaps the hero by 30px). */

/* ================= hero ================= */
/* The text block repeats the family value for value (nachwuchs.css .nwh__*, the Themen heroes): left edge = the 1280px
   box with 64px padding (24px from 900 to 1023 and under 900, 20px under 640), eyebrow top 168px from 1024px, h1
   clamp(1.75rem, 3.65vw, 3.3rem)/1.05 900 -.015em with the accent line in the family gradient, lead clamp(1.02rem,
   1.25vw, 1.18rem)/1.62 max 540px, buttons 49.6px radius 10; 672px from 1024px. */
.rfh {
  --rfh-pad: 64px; --rfh-top: 168px; --rfh-copy: calc((min(100cqw, 1280px) - 180px) * 7 / 12); --rfh-cw: var(--rfh-copy);
  container: rfh / inline-size;
  position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; margin: 0; color: #0f172a;
  font-family: "Theme-Font", Inter, system-ui, sans-serif;
  background:
    radial-gradient(ellipse 40% 64% at 74% 52%, rgb(255 255 255 / .85), rgb(255 255 255 / 0) 70%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgb(127 216 245 / .22), transparent 70%),
    linear-gradient(160deg, #f6fbfe 0%, #eef8fc 42%, #e4f4fb 74%, #dff2fa 100%);
}
.rfh *, .rfh *::before, .rfh *::after { box-sizing: border-box; }
#crm__widgets .frame:has(> .rfh) { max-width: none; width: auto; margin: 0; padding: 0; }
.rfh a { text-decoration: none; }
.rfh__inner { position: relative; z-index: 3; width: 100%; max-width: 1280px; min-height: 672px; margin: 0 auto; padding: var(--rfh-top) var(--rfh-pad) 64px; pointer-events: none; }
.rfh__copy { position: relative; z-index: 4; width: var(--rfh-copy); max-width: 100%; pointer-events: auto; }
html.nw-fw .rfh__copy { visibility: hidden; }
.rfh__eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem !important; padding: .4rem .85rem .4rem .7rem;
  border: 1px solid rgb(0 171 227 / .34); border-radius: 999px; background: rgb(255 255 255 / .72); color: #00475e;
  font: 800 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 6px 18px -12px rgb(0 62 82 / .35); }
.rfh__pulse { position: relative; display: inline-flex; width: .5rem; height: .5rem; border-radius: 999px; background: #00abe3; box-shadow: 0 0 14px rgb(0 171 227 / .55); }
.rfh__pulse::after { content: ""; position: absolute; inset: -.45rem; border: 1px solid rgb(0 171 227 / .5); border-radius: 999px; animation: rfh-pulse 2.4s ease-out infinite; }
@keyframes rfh-pulse { 0% { opacity: .72; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.8); } }
.rfh__h1 { max-width: 680px; margin: 0; color: #003e52; font-family: "Heading-Font", "Inter Tight", Inter, system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.65vw, 3.3rem); font-weight: 900; line-height: 1.05; letter-spacing: -.015em; text-wrap: balance;
  hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 9 5 4; overflow-wrap: break-word; }
.rfh__accent { display: block; margin-top: .12em; padding-bottom: .14em; line-height: 1.14;
  background: linear-gradient(90deg, #007aa8 0%, #00abe3 100%) 0 0 / min(680px, var(--rfh-cw)) 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.rfh__lead { max-width: 540px; margin-top: 1.5rem; color: #475569; font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.62; text-wrap: pretty; }
.rfh__lead p { margin: 0; }
.rfh__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.rfh__btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.1rem; padding: .8rem 1.4rem;
  border-radius: 10px; font-size: 1rem; font-weight: 800; letter-spacing: .01em; line-height: 1.2; text-decoration: none;
  transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.rfh__btn i { display: inline-block; width: 1.1em; font-size: 1rem; text-align: center; }
.rfh__btn--primary { background: #00abe3; color: #fff !important; box-shadow: 0 16px 34px -14px rgb(0 171 227 / .6); }
.rfh__btn--primary:hover, .rfh__btn--primary:focus-visible { background: #007aa8; color: #fff !important; box-shadow: 0 18px 36px -14px rgb(0 122 168 / .6); }
.rfh__btn--secondary { border: 1px solid rgb(0 62 82 / .26); background: rgb(255 255 255 / .74); color: #003e52 !important; }
.rfh__btn--secondary:hover, .rfh__btn--secondary:focus-visible { border-color: #00abe3; background: #fff; color: #003e52 !important; }
.rfh__btn:focus-visible { outline: 2px solid #003e52; outline-offset: 3px; }
.rfh__glow { position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: radial-gradient(circle at calc(50% + min(50cqw, 640px) - 300px) 50%, rgb(127 216 245 / .3), rgb(127 216 245 / 0) 330px); }

/* ---------- the map: the area right of the text, the map fitted into it (portrait, viewBox in map units) ---------- */
.rfh { --rfh-al: calc(max(0px, (100cqw - 1280px) / 2) + 64px + 540px + 40px); --rfh-ar: calc(max(0px, (100cqw - 1280px) / 2) + 24px); }
.rfh__area { position: absolute; z-index: 2; top: 92px; bottom: 50px; left: var(--rfh-al); right: var(--rfh-ar); container-type: size; display: grid; place-items: center; pointer-events: none; }
.rfh__map { --rfh-u: 1; position: relative; height: min(100cqh, 100cqw * 443 / 333); aspect-ratio: var(--ar, 333 / 443); pointer-events: none; }
.rfh__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.rfh__land { fill: rgb(255 255 255 / .62); }
.rfh__coast { fill: none; stroke: rgb(0 62 82 / .2); stroke-width: 1px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rfh__d { fill: rgb(0 62 82 / .2); }
.rfh__dp { fill: #00abe3; }
.rfh__cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.rfh__pts { position: absolute; inset: 0; pointer-events: none; }

/* a point of light at (--x, --y) of the map, size --s; a fixed part of the drawing (no link, nothing to click) */
.rfh__pt { --d: calc(13px * var(--s, 1)); position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff 0 24%, #bfeefc 38%, #00abe3 78%);
  box-shadow: 0 0 0 calc(5px * var(--s, 1)) rgb(0 171 227 / .15), 0 0 calc(24px * var(--s, 1)) calc(7px * var(--s, 1)) rgb(0 171 227 / .36);
  transition: transform .3s cubic-bezier(.3, .7, .3, 1.4), box-shadow .3s ease; }
.rfh__pt::after { content: ""; position: absolute; inset: -7px; border: 1px solid rgb(0 171 227 / .45); border-radius: 50%; opacity: 0; transform: scale(.6); }
/* light arrives, or the pointer touches the point: a swell and one ring */
.rfh__pt.is-ping { transform: scale(1.22); box-shadow: 0 0 0 calc(6px * var(--s, 1)) rgb(0 171 227 / .22), 0 0 calc(32px * var(--s, 1)) calc(10px * var(--s, 1)) rgb(0 171 227 / .45); }
.rfh__pt.is-ping::after { animation: rfh-ring 1.4s ease-out; }
@keyframes rfh-ring { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }

/* the section pill menu overlaps the hero's lower edge by 30px (as on the Themen topic pages and the Nachwuchs page) */
body:has(.rfh) #crm__widgets .frame-type-menu_subpages { margin-top: -30px; z-index: 41; }

/* ---------- widths ---------- */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .rfh { --rfh-copy: min(calc((min(100cqw, 1280px) - 180px) * 7 / 12), 480px); --rfh-al: calc(64px + 480px + 28px); --rfh-ar: 20px; }
}
/* under 1024: text first, then the map in the flow, on the hero's ground */
@media (max-width: 1023.98px) {
  .rfh { --rfh-pad: 24px; --rfh-top: 104px; --rfh-copy: 100%; --rfh-cw: min(620px, 100cqw - 2 * var(--rfh-pad)); background: linear-gradient(170deg, #f6fbfe 0%, #eef8fc 50%, #e1f3fa 100%); }
  .rfh__inner { min-height: 0; padding-bottom: 0; }
  .rfh__copy { max-width: 620px; }
  .rfh__glow { display: none; }
  .rfh__area { position: relative; inset: auto; display: flex; justify-content: center; width: auto; height: auto; padding: 24px var(--rfh-pad) 62px; container-type: normal;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgb(255 255 255 / .8), rgb(255 255 255 / 0) 70%); }
  .rfh__map { height: clamp(280px, 62vw, 470px); }
}
@media (max-width: 639.98px) {
  .rfh { --rfh-pad: 20px; --rfh-top: 84px; }
  .rfh__eyebrow { gap: .45rem; margin-bottom: 1rem !important; padding: .28rem .7rem; font-size: .6875rem; letter-spacing: .1em; line-height: 1.45; }
  .rfh__lead { margin-top: 1.25rem; font-size: .95rem; line-height: 1.55; }
  .rfh__buttons { flex-direction: column; align-items: stretch; }
  .rfh__btn { width: 100%; }
  .rfh__area { padding: 8px 12px 54px; }
  .rfh__map { height: 256px; }
  .rfh__pt { --d: calc(10px * var(--s, 1)); }
}

@media (prefers-reduced-motion: reduce) {
  .rfh__pulse::after { animation: none; opacity: 0; }
  .rfh__btn, .rfh__pt { transition: none; }
  .rfh__pt.is-ping::after { animation: none; }
}


/* ---------- the site header over this bright element (copied from Tools/NetzwerkRedesign/design/assets/netzwerk.css
   "site header", 2026-11-12, scoped to pages that carry the element, as dgm_section_hero_women does; page field
   tx_dgm_fullscreen_hero = 2, the dark menu of a bright hero) ---------- */
/* pinned, the bar is the same blue as on the dark heroes, so the blue logo turns white there (at the top it stays blue on
   the bright ground) */
body.dgm-page-has-fullscreen-hero-dark:has(.rfh) .mainmenu.dgm-mainmenu--pinned #logo img { filter: brightness(0) invert(1); }
/* header over the hero (not pinned): search and language buttons with ink icons and a visible border */
body.dgm-page-has-fullscreen-hero-dark:has(.rfh) .mainmenu:not(.dgm-mainmenu--float) .dgm-mainmenu-overlay-actions :is(button[aria-label="Search"], #options-menu) { border: 1px solid rgb(15 23 42 / .28) !important; background: rgb(255 255 255 / .7) !important; color: #0f172a !important; }
body.dgm-page-has-fullscreen-hero-dark:has(.rfh) .mainmenu:not(.dgm-mainmenu--float) .dgm-mainmenu-overlay-actions :is(button[aria-label="Search"], #options-menu) * { color: #0f172a !important; }
body.dgm-page-has-fullscreen-hero-dark:has(.rfh) .mainmenu:not(.dgm-mainmenu--float) .dgm-mainmenu-overlay-actions :is(button[aria-label="Search"], #options-menu):hover { border-color: #00abe3 !important; }
