/* Content element dgm_section_head (task 19, agent B, 2026-11-12): the compact bright head of the Nachwuchs child pages
   as a TYPO3 element. Moved here unchanged from Tools/NetzwerkRedesign/design/assets/groups/nachwuchs.css (task 13: the
   head and its reduced-motion rules); the element's frontend.html writes the markup nwsHead() of design/spec/_nachwuchs.php
   wrote, class for class. Added at the end: the site header rules of netzwerk.css, scoped to pages with .nws-head. */
/* ---------- the head (634px with the site header from 1280px: the longest text block, the English study guide at 1680px, ends at 561px and keeps 42px above the menu): compact, bright, the family text block left (eyebrow 168px, h1 216px from the top, the Nachwuchs
   hero's left edge: the 1280px box with 64px padding), one photograph as a tilted card and two drawn objects right.
   One height from 1280px (--nws-h with the site header over it); the pill menu overlaps the lower edge by 30px. ---------- */
.nws-head {
  --nws-pad: 64px; --nws-top: 168px; --nws-copy: calc((min(100cqw, 1280px) - 180px) * 7 / 12); --nws-h: 634px;
  --nws-al: calc(max(0px, (100cqw - 1280px) / 2) + 64px + 540px + 48px); --nws-ar: calc(max(0px, (100cqw - 1280px) / 2) + 40px);
  container: nws / 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 46% 62% at 74% 50%, rgb(255 255 255 / .9), 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%);
}
.nws-head *, .nws-head *::before, .nws-head *::after { box-sizing: border-box; }
#crm__widgets .frame:has(> .nws-head) { max-width: none; width: auto; margin: 0; padding: 0; }
.nws-head a { text-decoration: none; }
.nws-head__inner { position: relative; z-index: 3; width: 100%; max-width: 1280px; min-height: var(--nws-h); margin: 0 auto; padding: var(--nws-top) var(--nws-pad) 72px; pointer-events: none; }
.nws-head__copy { position: relative; z-index: 4; width: var(--nws-copy); max-width: 100%; pointer-events: auto; }
html.nw-fw .nws-head__copy { visibility: hidden; }
/* the eyebrow: the family pill, a link back to the Nachwuchs page (an arrow where the hero has its pulse) */
.nws-head__eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem; padding: .4rem .85rem .4rem .7rem; vertical-align: top;
  border: 1px solid rgb(0 171 227 / .34); border-radius: 999px; background: rgb(255 255 255 / .72); color: #00475e !important;
  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); transition: border-color .2s ease, background-color .2s ease; }
.nws-head__eyebrow i { width: .5rem; color: #00abe3; font-size: .7rem; transition: transform .2s ease; }
.nws-head__eyebrow:hover { border-color: #00abe3; background: #fff; }
.nws-head__eyebrow:hover i { transform: translateX(-2px); }
.nws-head__eyebrow:focus-visible { outline: 2px solid #003e52; outline-offset: 3px; }
.nws-head__copy > .nws-head__eyebrow + .nws-head__h1 { display: block; }
.nws-head__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: manual; overflow-wrap: break-word; }
/* the key word with the hero's marker stroke (light tone, drawn once the fonts are in) */
.nws-head__key { position: relative; z-index: 0; display: inline-block; }
.nws-head__mark { position: absolute; left: -.06em; right: -.1em; bottom: -.16em; width: calc(100% + .16em); height: .3em; overflow: visible; pointer-events: none; z-index: -1; }
.nws-head__mark path { fill: none; stroke: #7fd8f5; stroke-width: .15em; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: nws-draw .75s cubic-bezier(.55, .08, .3, 1) .3s forwards; }
html.nw-fw .nws-head__mark path { animation: none; }
@keyframes nws-draw { to { stroke-dashoffset: 0; } }
.nws-head__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; }
.nws-head__lead p { margin: 0; }
.nws-head__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.nws-head__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; }
.nws-head__btn i { display: inline-block; width: 1.1em; font-size: 1rem; text-align: center; }
.nws-head__btn--primary { background: #00abe3; color: #fff !important; box-shadow: 0 16px 34px -14px rgb(0 171 227 / .6); }
.nws-head__btn--primary:hover, .nws-head__btn--primary:focus-visible { background: #007aa8; color: #fff !important; box-shadow: 0 18px 36px -14px rgb(0 122 168 / .6); }
.nws-head__btn--secondary { border: 1px solid rgb(0 62 82 / .26); background: rgb(255 255 255 / .74); color: #003e52 !important; }
.nws-head__btn--secondary:hover, .nws-head__btn--secondary:focus-visible { border-color: #00abe3; background: #fff; color: #003e52 !important; }
.nws-head__btn:focus-visible { outline: 2px solid #003e52; outline-offset: 3px; }
.nws-head__glow { position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: radial-gradient(circle at calc(100% - var(--nws-ar) - (100% - var(--nws-al) - var(--nws-ar)) / 2) 48%, rgb(127 216 245 / .34), rgb(127 216 245 / 0) 300px); }
/* the picture: a fixed 4:3 card (white frame, soft shadow on its own layer) in the area right of the text; two drawn
   objects at its corners (centre and width in % of the card), floating gently */
.nws-head__art { position: absolute; z-index: 2; top: 100px; bottom: 64px; left: var(--nws-al); right: var(--nws-ar); container-type: size; display: grid; place-items: center; pointer-events: none; }
.nws-head__stage { position: relative; width: min(420px, 100cqw - 120px, (100cqh - 40px) * 4 / 3); aspect-ratio: 4 / 3; }
.nws-head__card { position: absolute; inset: 0; margin: 0; }
.nws-head__cj { position: relative; z-index: 1; display: block; height: 100%; padding: 8px; border-radius: 16px; background: #fff; transform: rotate(var(--tilt));
  box-shadow: 0 0 0 1px rgb(0 62 82 / .06), 0 1px 2px rgb(0 33 44 / .08); }
.nws-head__cj img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: #dff2fa; }
.nws-head__cs { position: absolute; z-index: 0; inset: 7% 5% -3%; border-radius: 18px; transform: rotate(var(--tilt)); background: rgb(0 33 44 / .32); filter: blur(16px); }
.nws-head__o { position: absolute; z-index: 3; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); translate: -50% -50%; display: block; }
.nws-head__oj { position: relative; z-index: 1; display: block; transform: rotate(var(--r)); animation: nws-float 7s ease-in-out infinite alternate; }
.nws-head__o--b .nws-head__oj { animation-duration: 9s; animation-delay: -4s; }
.nws-head__os { position: absolute; left: 16%; right: 16%; top: 26%; bottom: 8%; border-radius: 50%; background: rgb(0 33 44 / .22); filter: blur(7px); transform: translateY(10px); }
@keyframes nws-float { from { translate: 0 -3px; } to { translate: 0 4px; } }
#crm__widgets :is(.nws-head, .nws-contact) .nwh__svg { display: block; width: 100%; height: auto; overflow: visible; }
:is(.nws-head, .nws-contact) .nwh__svg .k { stroke: #003e52; stroke-width: 1.5px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
:is(.nws-head, .nws-contact) .nwh__svg .k.f { stroke-width: 1.1px; }
:is(.nws-head, .nws-contact) .nwh__svg .k.t { stroke-width: 1.3px; }
:is(.nws-head, .nws-contact) .nwh__svg path:not(.k), :is(.nws-head, .nws-contact) .nwh__spring path { vector-effect: non-scaling-stroke; }
.nws-head .nwh__qcode { fill: #fff; font: 800 7.4px/1 "Heading-Font", "Inter Tight", Inter, sans-serif; letter-spacing: .02em; }
/* the Nachwuchs pill menu overlaps the head's lower edge by 30px (as on page 54) */
body:has(.nws-head) #crm__widgets .frame-type-menu_subpages { margin-top: -30px; z-index: 41; }

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .nws-head { --nws-copy: min(calc((min(100cqw, 1280px) - 180px) * 7 / 12), 480px); --nws-al: calc(64px + 480px + 36px); --nws-ar: 24px; }
}
@media (min-width: 900px) and (max-width: 1023.98px) {
  .nws-head { --nws-pad: 24px; --nws-top: 116px; --nws-copy: 420px; --nws-al: calc(24px + 420px + 28px); --nws-ar: 16px; }
}
/* 768 to 899: still side by side, a narrower text column; the head grows with its text */
@media (min-width: 768px) and (max-width: 899.98px) {
  .nws-head { --nws-pad: 24px; --nws-top: 112px; --nws-copy: 390px; --nws-h: 0px; --nws-al: calc(24px + 390px + 24px); --nws-ar: 12px; }
  .nws-head__inner { padding-bottom: 76px; }
  .nws-head__art { top: 96px; bottom: 56px; }
}
/* under 768: the text first, then the card in the flow on the head's ground */
@media (max-width: 767.98px) {
  .nws-head { --nws-pad: 24px; --nws-top: 104px; --nws-copy: 100%; background: linear-gradient(170deg, #f6fbfe 0%, #eef8fc 50%, #e1f3fa 100%); }
  .nws-head__inner { min-height: 0; padding-bottom: 0; }
  .nws-head__copy { max-width: 620px; }
  .nws-head__glow { display: none; }
  .nws-head__art { position: relative; inset: auto; display: flex; justify-content: center; padding: 32px 24px 62px; container-type: normal; }
  .nws-head__stage { width: min(280px, 60vw); }
}
@media (max-width: 639.98px) {
  .nws-head { --nws-pad: 20px; --nws-top: 84px; }
  .nws-head__eyebrow { gap: .45rem; margin-bottom: 1rem; padding: .28rem .7rem; font-size: .6875rem; letter-spacing: .1em; line-height: 1.45; }
  .nws-head__lead { margin-top: 1.25rem; font-size: .95rem; line-height: 1.55; }
  .nws-head__buttons { flex-direction: column; align-items: stretch; }
  .nws-head__btn { width: 100%; }
  /* phones: a small card (the head stays under 620px at 390 with the longest text) */
  .nws-head__art { padding: 14px 20px 42px; }
  .nws-head__stage { width: 144px; }
  .nws-head__o { width: calc(var(--w) * 1.25%); top: calc(max(var(--y), 14) * 1%); }
  .nws-head__o--b { top: 30%; left: 106%; }
  .nws-head__cj { padding: 6px; border-radius: 12px; } .nws-head__cj img { border-radius: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .nws-head__oj { animation: none; }
  .nws-head__mark path { animation: none; stroke-dashoffset: 0; }
  .nws-head__btn, .nws-head__eyebrow, .nws-head__eyebrow i { transition: none; }
}

/* ---------- the site header over this bright element (copied from netzwerk.css "site header", 2026-11-12, scoped to
   pages that carry the element; page field tx_dgm_fullscreen_hero = 2, the dark menu of a bright hero) ---------- */
body.dgm-page-has-fullscreen-hero-dark:has(.nws-head) .mainmenu.dgm-mainmenu--pinned #logo img { filter: brightness(0) invert(1); }
body.dgm-page-has-fullscreen-hero-dark:has(.nws-head) .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(.nws-head) .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(.nws-head) .mainmenu:not(.dgm-mainmenu--float) .dgm-mainmenu-overlay-actions :is(button[aria-label="Search"], #options-menu):hover { border-color: #00abe3 !important; }
