/* Content element dgm_section_hero_areas (Tools/NetzwerkRedesign brief 19, 2026-11-12): styles of the hero with areas.
   Copied unchanged from Tools/NetzwerkRedesign/design/assets/heroes/network.css (the audited html hero); the element template writes the same markup. Keep the two in step
   until phase 2 retires the old file. */
/* Network hero, third version (Netzwerk hub, brief 11, user 2026-11-12: "should only reflect the main areas"): the seven
   areas of the network around the DGM as one piece of light. Markup from networkHeroNext() in design/heroes/network.php,
   drawing from network-next.js. Everything is scoped to .nh / .nhx (one rule outside it: the html frame that holds .nh
   gets full width).
   The text block repeats the dark Themen heroes' measures value for value (process.css .ph__*): left edge = the 1280px
   box with 64px padding (24px below 1024, 20px below 640), eyebrow top 168px from 1024px up, h1 clamp(1.75rem, 3.65vw,
   3.3rem)/1.05 900, lead clamp(1.02rem, 1.25vw, 1.18rem)/1.62, buttons 49.6px, radius 10; hero 672px from 1024px up. */
.nh {
  --nh-p: #00abe3; --nh-pl: #7fd8f5; --nh-p2: #b6eafc; --nh-p3: #89defb; --nh-ink: #00212c; --nh-ink2: #003e52;
  --nh-pad: 64px; --nh-top: 168px; --nh-copy: calc((min(100cqw, 1280px) - 180px) * 7 / 12);
  container: nh / inline-size;
  position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; margin: 0; color: #fff;
  font-family: "Theme-Font", Inter, system-ui, sans-serif;
  background-color: #00212c;
  background:
    radial-gradient(ellipse 46% 62% at 74% 56%, rgb(0 171 227 / .17), rgb(0 171 227 / .05) 58%, transparent 78%),
    radial-gradient(ellipse 40% 54% at 6% 0%, rgb(0 171 227 / .06), transparent 70%),
    linear-gradient(164deg, #001c26 0%, #00212c 34%, #002d3d 70%, #003e52 100%);
}
.nh *, .nh *::before, .nh *::after { box-sizing: border-box; }
/* placed as an html content element: its frame runs the full width with no outer spacing, as the Event Hero does */
#crm__widgets .frame:has(> .nh) { max-width: none; width: auto; margin: 0; padding: 0; }
.nh a { text-decoration: none; }
.nh p { margin: 0; }
.nh__sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* a calm field behind the text: the network's light never reaches the copy */
.nh::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(0 27 36 / .72) 0%, rgb(0 27 36 / .44) 32%, rgb(0 27 36 / 0) 52%); }

.nh__inner { position: relative; z-index: 3; width: 100%; max-width: 1280px; min-height: 672px; margin: 0 auto;
  padding: var(--nh-top) var(--nh-pad) 64px; pointer-events: none; }
.nh__copy { position: relative; z-index: 4; width: var(--nh-copy); max-width: 100%; pointer-events: auto; }
html.nw-fw .nh__copy, html.nw-fw .nhx__hint { visibility: hidden; }

/* the dark pill (process.css .ph__eyebrow, value for value) */
.nh__eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem !important; padding: .4rem .85rem .4rem .7rem;
  border: 1px solid rgb(137 222 251 / .28); border-radius: 999px; background: rgb(7 38 49 / .52); color: #e6f6fd;
  font: 800 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.nh__pulse { position: relative; display: inline-flex; width: .5rem; height: .5rem; border-radius: 999px; background: var(--nh-p3);
  box-shadow: 0 0 22px rgb(0 171 227 / .7); }
.nh__pulse::after { content: ""; position: absolute; inset: -.45rem; border: 1px solid rgb(0 171 227 / .42); border-radius: 999px;
  animation: nh-pulse 2.4s ease-out infinite; }
@keyframes nh-pulse { 0% { opacity: .72; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.8); } }

.nh__h1 { max-width: 680px; margin: 0; color: #fff; 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; }
.nh__accent { display: block; margin-top: .12em; padding-bottom: .14em; line-height: 1.14;
  background: linear-gradient(96deg, #b6eafc 0%, #fff 44%, #89defb 78%, #46cefb 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgb(255 255 255 / .4)) drop-shadow(0 0 20px rgb(0 171 227 / .3)); }
.nh__lead { max-width: 540px; margin-top: 1.5rem; color: rgb(236 244 251 / .84); font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.62; text-wrap: pretty; }
.nh__lead p + p { margin-top: .6em; }
.nh__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.nh__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: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.nh__btn--primary { background: #00abe3; color: #fff !important; box-shadow: 0 16px 38px -12px rgb(0 171 227 / .55); }
.nh__btn--primary:hover, .nh__btn--primary:focus-visible { background: #007aa8; color: #fff !important; box-shadow: 0 18px 40px -12px rgb(0 122 168 / .6); }
.nh__btn--secondary { border: 1px solid rgb(137 222 251 / .34); background: rgb(7 38 49 / .46); color: #fff !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nh__btn--secondary:hover, .nh__btn--secondary:focus-visible { border-color: rgb(137 222 251 / .6); background: rgb(0 171 227 / .2); color: #fff !important; }
.nh__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.nh__btn i { font-size: 1rem; }


/* ---------- the space: two layers of anonymous light behind the whole hero (text included, dim there) ----------
   network-next.js draws them once per size and moves them by transform only (drift and the pointer's parallax). */
.nhx__space { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.nhx__space .nhx__cv { position: absolute; top: -48px; left: -48px; width: calc(100% + 96px); height: calc(100% + 96px); will-change: transform; }
.nhx__cv { display: block; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.nh.is-live .nhx__cv--ground, .nh.is-live .nhx__cv--far, .nh.is-live .nhx__cv--mid, .nh.is-live .nhx__cv--glow, .nh.is-live .nhx__cv--sharp { opacity: 1; }
.nhx__cv--fade { transition: none; }

/* ---------- the network (1024px and wider): right of the text, the full height of the hero ----------
   left: 24px clear of the text block (the lead is at most 540px); the canvases run to the hero's right and upper edge,
   network-next.js keeps nodes and names inside the stage and below the site header. */
.nhx__art { position: absolute; z-index: 2; top: 0; bottom: 0; right: 0;
  left: round(down, calc(max(0px, (100cqw - 1280px) / 2) + var(--nh-pad) + min(var(--nh-copy), 540px) + 24px), 1px); }
.nhx__stage { position: absolute; inset: 0; }
.nhx__stage > .nhx__cv { position: absolute; top: 0; left: -64px; width: calc(100% + 64px); height: 100%; } /* -64px: ML in network-next.js */
.nhx__areas { position: absolute; inset: 0; pointer-events: none; }

/* an area: a real link over its node (the node is its hit area, at least 44px), its name always readable under it, its
   one line from the copy file under the name when it is in focus (hover, keyboard, the round) */
.nhx__a { position: absolute; left: 0; top: 0; display: block; pointer-events: auto; color: #fff !important; text-decoration: none;
  outline: none; -webkit-tap-highlight-color: transparent; will-change: transform; }
.nhx__name { position: absolute; left: 50%; top: 100%; display: block; width: max-content; max-width: 220px; margin-top: 10px;
  transform: translateX(calc(-50% + var(--nhx-dx, 0px))); color: #fff; font-size: 15px; font-weight: 700; line-height: 19px; letter-spacing: .005em;
  text-align: center; text-shadow: 0 1px 2px rgb(0 20 28 / .9), 0 0 12px rgb(0 20 28 / .85); white-space: nowrap; transition: color .25s ease; }
.nhx__line { position: absolute; left: 50%; top: 100%; display: block; width: max-content; max-width: 250px; margin-top: 33px;
  transform: translateX(calc(-50% + var(--nhx-dx, 0px))); color: rgb(214 240 250 / .9); font-size: 13px; font-weight: 500; line-height: 17px; text-align: center;
  text-wrap: balance; text-shadow: 0 1px 2px rgb(0 20 28 / .9), 0 0 10px rgb(0 20 28 / .85); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.nhx__a.is-on .nhx__line { opacity: 1; }
/* compact names (a stage under 560px: 1024 to about 1200px, tablets, phones) */
.nh.is-compact .nhx__name { font-size: 13px; line-height: 16px; margin-top: 7px; }
.nh.is-compact .nhx__line { font-size: 12px; line-height: 15px; margin-top: 27px; max-width: 180px; }
/* the name over the body (when under it something would be touched), the line over the name */
.nhx__a.is-up .nhx__name { top: auto; bottom: 100%; margin: 0 0 10px; }
.nhx__a.is-up .nhx__line { top: auto; bottom: 100%; margin: 0 0 33px; }
.nh.is-compact .nhx__a.is-up .nhx__name { margin: 0 0 7px; }
.nh.is-compact .nhx__a.is-up .nhx__line { margin: 0 0 27px; }
/* the line on the body's other side (when the name's side has no room for it) */
.nhx__a.is-ldown .nhx__line { top: 100%; bottom: auto; margin: 10px 0 0; }
.nhx__a.is-lup .nhx__line { top: auto; bottom: 100%; margin: 0 0 10px; }
.nh.is-compact .nhx__a.is-ldown .nhx__line { margin: 7px 0 0; }
.nh.is-compact .nhx__a.is-lup .nhx__line { margin: 0 0 7px; }
/* beside the body (the areas at the orbit's ends): name and line left-aligned at its right, or right-aligned at its left */
.nh .nhx__a.is-sr .nhx__name, .nh .nhx__a.is-sl .nhx__name { top: 50%; bottom: auto; margin: 0; transform: translateY(calc(-100% - 2px)); }
.nh .nhx__a.is-sr .nhx__line, .nh .nhx__a.is-sl .nhx__line { top: 50%; bottom: auto; margin: 0; transform: translateY(2px); }
.nh .nhx__a.is-sr .nhx__name, .nh .nhx__a.is-sr .nhx__line { left: calc(100% + 9px); right: auto; text-align: left; }
.nh .nhx__a.is-sl .nhx__name, .nh .nhx__a.is-sl .nhx__line { left: auto; right: calc(100% + 9px); text-align: right; }
/* beside the body the other way round: the name under its middle, the line over it */
.nh .nhx__a.is-s2.is-sr .nhx__name, .nh .nhx__a.is-s2.is-sl .nhx__name { transform: translateY(2px); }
.nh .nhx__a.is-s2.is-sr .nhx__line, .nh .nhx__a.is-s2.is-sl .nhx__line { top: auto; bottom: 50%; transform: translateY(-2px); }
/* phones: the line is a caption at the stage's foot, centred */
.nh.is-cap .nhx__a.is-sr .nhx__name, .nh.is-cap .nhx__a.is-sl .nhx__name { transform: translateY(-50%); }
.nh.is-cap .nhx__a .nhx__line { left: var(--nhx-cx, 50%); right: auto; top: var(--nhx-cy, 100%); bottom: auto; margin: 0; transform: translate(-50%, -100%); text-align: center; }
/* where nothing else is free (1024 to 1200 px, English): the line in the hint's place, the hint stepping back meanwhile */
.nh .nhx__areas .nhx__a.is-cl .nhx__line { left: var(--nhx-cx, 100%); right: auto; top: var(--nhx-cy, 100%); bottom: auto; margin: 0; transform: translate(-100%, -100%); text-align: right; }
.nh.is-clon .nhx__hint { opacity: 0; transition-delay: 0s; }
.nh .nhx__areas .nhx__a.is-cl .nhx__line { transition: opacity .25s ease; }
.nh .nhx__areas .nhx__a.is-cl.is-on .nhx__line { transition-delay: .2s; } /* in after the hint or the previous line is out */
.nhx__a.is-dim .nhx__name { color: rgb(226 244 251 / .9); }
.nhx__a:focus-visible .nhx__name { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }
.nh:not(.is-placed) .nhx__a { visibility: hidden; }

/* the hint under the drawing */
.nhx__hint { position: absolute; right: 40px; bottom: 22px; z-index: 2; max-width: calc(100% - 80px); color: rgb(220 242 250 / .88);
  font-size: 12px; font-weight: 500; line-height: 16px; text-align: right; transition: opacity .2s ease .6s; } /* back only after a pause (the round's gap is 0.5 s) */


/* 1024 to 1279: the text column keeps the other heroes' left edge, h1 size and top; 480px wide (as on the loop hero) */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .nh { --nh-copy: min(calc((min(100cqw, 1280px) - 180px) * 7 / 12), 480px); }
}
/* ---------- under 1024: text first, then the network under it (at most 420px) ---------- */
@media (max-width: 1023.98px) {
  .nh { --nh-pad: 24px; --nh-top: 116px; --nh-copy: 100%; }
  .nh::after { background: linear-gradient(180deg, rgb(0 27 36 / .55) 0%, rgb(0 27 36 / .2) 40%, rgb(0 27 36 / 0) 60%); }
  .nh__inner { min-height: 0; padding-bottom: 0; }
  .nh__copy { max-width: 620px; }
  .nhx__art { position: relative; inset: auto; z-index: 2; margin: 12px 0 0; }
  .nhx__stage { position: relative; inset: auto; height: clamp(400px, 112vw, 420px); }
  .nhx__hint { position: relative; right: auto; bottom: auto; max-width: none; margin: 0; padding: 4px var(--nh-pad) 28px; text-align: left; }
}
@media (max-width: 640px) {
  .nh { --nh-pad: 20px; --nh-top: 84px; }
  .nh__eyebrow { gap: .45rem; margin-bottom: 1rem !important; padding: .28rem .7rem; font-size: .6875rem; letter-spacing: .1em; line-height: 1.45; }
  .nh__lead { margin-top: 1.25rem; font-size: .95rem; line-height: 1.55; }
  .nh__buttons { flex-direction: column; align-items: stretch; }
  .nh__btn { width: 100%; }
  .nh.is-compact .nhx__name { font-size: 12px; line-height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .nh__pulse::after { animation: none; opacity: 0; }
  .nh__btn, .nhx__name, .nhx__cv { transition: none; }
  .nhx__line { transition: opacity .4s ease; }
}

/* 2026-11-12, user: explaining lines like "Jeder Punkt ist ein Bereich des Netzwerks. Ein Klick öffnet seine Seite." are
   too much. The hint is not shown any more. From 1024px its box stays (invisible), because the script puts an area's
   line into that place when there is no room beside the nodes; below 1024px it is gone and the art keeps its foot room. */
.nhx__hint { visibility: hidden; }
@media (max-width: 1023.98px) {
  .nhx__hint { display: none; }
  .nhx__art { padding-bottom: 24px; }
}

