/* Network – die vorhandenen Seitenmasse mit eigener, heller Firewall-Farbwelt. */
body.networkDetail {
  --network-ink: var(--color-text);
  --network-title: var(--suit-technical-title);
  --network-text: #4d5962;
  --network-line: var(--color-link);
  --network-glass: rgba(255,255,255,.76);
}

body.servicePage.networkDetail main > .pageHero.networkHero {
  background:
    radial-gradient(ellipse at 80% 28%, #c5edf5 0%, transparent 58%),
    radial-gradient(ellipse at 16% 85%, #e3f3fd 0%, transparent 68%),
    linear-gradient(120deg,#fafdff,#edf8fd 63%,#d9f1f8) !important;
}

body.servicePage.networkDetail .networkHero > .shell.networkHeroGrid {
  display: grid !important;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr) !important;
  gap: clamp(1.25rem,4vw,3.25rem) !important;
  align-items: center !important;
}

body.servicePage.networkDetail .networkHero > .shell.networkHeroGrid::after { content: none !important; display: none !important; }

body.networkDetail main .k,
body.networkDetail main :is(h1,h2,h3) {
  color: var(--network-ink) !important;
  -webkit-text-fill-color: var(--network-ink) !important;
}

body.networkDetail .networkHeroCopy h1 {
  font-size: clamp(2.25rem,4.4vw,4.3rem) !important;
  line-height: 1.06 !important;
  text-wrap: balance;
}

body.networkDetail .networkHeroCopy > p:not(.k),
body.networkDetail :is(.networkServices,.networkExample,.networkNext) p:not(.k) {
  color: var(--network-text) !important;
  line-height: 1.6;
}

body.networkDetail .networkTopology {
  position: relative;
  isolation: isolate;
  padding: clamp(.85rem,2.1vw,1.5rem);
  border: 1px solid rgba(255,255,255,.93);
  border-radius: 1.4rem;
  perspective: 700px;
}

body.networkDetail .networkTopology h2 {
  margin: 0;
  font-size: clamp(1.22rem,2.1vw,1.65rem) !important;
  line-height: 1.2;
}

body.networkDetail .networkTopology .networkTopologyIntro {
  margin: .35rem 0 .9rem;
  color: var(--network-text);
  font-size: .85rem;
}

body.networkDetail .networkUplink {
  position: relative;
  margin: 0 0 .7rem;
  text-align: center;
  color: var(--network-ink);
  font-size: .78rem;
  font-weight: 750;
}

body.networkDetail .networkUplink::after,
body.networkDetail .networkFirewall::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: .76rem;
  background: var(--network-line);
  pointer-events: none;
}

body.networkDetail .networkTopology :is(.networkFirewall,.networkBranches a) {
  position: relative;
  display: grid;
  place-content: center;
  gap: .15rem;
  min-width: 0;
  padding: .6rem .4rem;
  border: 1px solid #e99b79;
  border-radius: .72rem;
  background: linear-gradient(140deg,var(--color-raised),var(--suit-glass-blue));
  color: var(--network-ink);
  box-shadow: inset 0 1px 0 #fff,0 4px 0 rgba(169,91,104,.18),0 7px 12px rgba(148,73,88,.09);
  text-align: center;
  overflow-wrap: anywhere;
}

body.networkDetail .networkTopology .networkFirewall {
  max-width: 18rem;
  margin-inline: auto;
  background: linear-gradient(145deg,var(--cloud-white),var(--cloud-aqua));
}

body.networkDetail .networkTopology a span { font-size: .75rem; }
body.networkDetail .networkTopology a:is(:hover,:focus-visible) { background: var(--soft-aqua); }
body.networkDetail main :is(a,summary):focus-visible {
  outline: 2px solid #a44e5d;
  outline-offset: 3px;
}

body.networkDetail .networkBranches {
  --network-gap: .48rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--network-gap);
  margin: .76rem 0 0;
  padding: .66rem 0 0;
  list-style: none;
}

body.networkDetail .networkBranches::before {
  content: "";
  position: absolute;
  inset: 0 calc((100% - 2 * var(--network-gap)) / 6) auto;
  height: 1px;
  background: linear-gradient(90deg,var(--color-link),var(--suit-data-line),var(--color-link)) 0 0 / 200% 100%;
}

body.networkDetail .networkBranches li { position: relative; min-width: 0; }
body.networkDetail .networkBranches li::before {
  content: "";
  position: absolute;
  inset: -.66rem auto auto 50%;
  width: 1px;
  height: .66rem;
  background: var(--network-line);
}
body.networkDetail .networkBranches a { height: 100%; }

body.networkDetail .networkTopology .networkBackupLink {
  display: block;
  margin-top: .85rem;
  padding: .5rem;
  border: 1px dashed #d88b67;
  border-radius: .6rem;
  color: var(--network-ink);
  text-align: center;
  font-size: .8rem;
  font-weight: 750;
}

body.networkDetail .networkServices { background: linear-gradient(#edf8fc,#f7fcff 72%); }
body.networkDetail .networkSectionIntro { max-width: 46rem; margin: 0 0 1.55rem; }
body.networkDetail .networkSectionIntro h2,
body.networkDetail .networkExample h2 { margin: .35rem 0 .65rem; font-size: clamp(1.75rem,3.2vw,2.75rem); line-height: 1.12; }

body.networkDetail .networkServicesGrid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}

body.networkDetail .networkServicesGrid article,
body.networkDetail .networkScenarios details {
  padding: clamp(1rem,2.2vw,1.45rem);
  border: 1px solid #efbd9e;
  border-radius: 1rem;
  background: linear-gradient(145deg,#fff,#f8fbfd);
  box-shadow: 0 7px 20px rgba(130,67,78,.07),inset 0 1px 0 #fff;
}

body.networkDetail .networkServicesGrid article { scroll-margin-top: 7rem; }
body.networkDetail .networkServicesGrid article:target { outline: 2px solid #b76573; }
body.networkDetail .networkServicesGrid h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
body.networkDetail .networkServicesGrid p,
body.networkDetail .networkScenarios p { margin: 0; }

body.networkDetail .networkExample { background: var(--suit-technical-surface); }
body.networkDetail .networkExampleGrid {
  display: grid;
  grid-template-columns: minmax(0,.75fr) minmax(0,1fr);
  gap: clamp(1rem,4vw,3rem);
  align-items: start;
}
body.networkDetail .networkScenarios { display: grid; gap: .7rem; }
body.networkDetail .networkScenarios summary { cursor: pointer; color: var(--network-ink); font-weight: 800; }
body.networkDetail .networkScenarios details[open] p { margin-top: .65rem; }

body.networkDetail main .ctaBand {
  background: linear-gradient(140deg,var(--color-surface),var(--warm-white)) !important;
  border-color: #eba784 !important;
}
body.networkDetail main .ctaBand::before { background: linear-gradient(90deg,#f39769,#c54c2f,#ffbc83) !important; }

@media (max-width:900px) {
  body.servicePage.networkDetail .networkHero > .shell.networkHeroGrid,
  body.networkDetail .networkExampleGrid { grid-template-columns: minmax(0,1fr) !important; }

  body.networkDetail .networkServicesGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width:550px) {
  body.networkDetail .networkServicesGrid { grid-template-columns: minmax(0,1fr); }
  body.networkDetail .networkBranches a { font-size: .8rem; padding-inline: .24rem; }
  body.networkDetail .networkBranches a span { font-size: .68rem; }
}

@media (prefers-reduced-motion:no-preference) {
  body.networkDetail .networkTopology[data-suit-visible] .networkBranches::before { animation: networkSignal 4.6s var(--ease-ui) both; }
  body.networkDetail .networkTopology :is(.networkFirewall,.networkBranches a) {
    transition: transform .28s ease,box-shadow .28s ease;
  }
  body.networkDetail .networkTopology :is(.networkFirewall,.networkBranches a):focus-visible {
    transform: translateY(-2px);
  }

  @keyframes networkSignal { from { background-position: 100% 0; } to { background-position: 0 0; } }
}

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  body.networkDetail .networkTopology :is(.networkFirewall,.networkBranches a):hover {
    transform: perspective(500px) rotateX(7deg) translateY(-3px);
    box-shadow: inset 0 1px 0 #fff,0 5px 0 rgba(169,91,104,.24),0 12px 21px rgba(148,73,88,.15);
  }
}


body.servicePage.networkDetail main > .networkHero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.networkDetail .networkHero::before,
body.networkDetail .networkPaths::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2% -12% 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 68% 28%,rgba(168,202,223,.16),transparent 47%),
    radial-gradient(ellipse at 35% 74%,rgba(255,255,255,.52),transparent 45%);
}

body.networkDetail .networkServicesGrid article:hover,
body.networkDetail .networkServicesGrid article:target {
  border-color: #df8961;
  background: linear-gradient(138deg,var(--color-surface),var(--aqua-white));
  box-shadow: 0 7px 22px rgba(193,77,38,.17),inset 0 1px 0 #fff;
}

body.networkDetail .networkPaths {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(155deg,#f9fcfe,#eaf4fa 58%,#f5fafd);
}

body.networkDetail .networkPathBoard {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1rem,3vw,1.8rem);
  border: 1px solid #c9dfe9;
  border-radius: 1.2rem;
  background: linear-gradient(rgba(97,146,171,.11) 1px,transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg,rgba(97,146,171,.11) 1px,transparent 1px) 0 0 / 22px 22px, linear-gradient(145deg,#fff,#edf7fc);
  box-shadow: 0 12px 28px rgba(150,57,27,.10),inset 0 1px 0 #fff7ee;
}

body.networkDetail .networkPathBoard h3 { margin: 0 0 .65rem; }

body.networkDetail .networkPath {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.networkDetail .networkPath li { position: relative; min-width: 0; }
body.networkDetail .networkPath li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: .7rem;
  left: calc(50% + .45rem);
  width: calc(100% + .65rem);
  height: 2px;
  background: linear-gradient(90deg,var(--color-link),var(--suit-data-line),var(--color-link)) 100% 0 / 200% 100%;
}

body.networkDetail .networkPath a {
  display: grid;
  gap: .25rem;
  align-content: start;
  min-height: 4.8rem;
  padding: 1.4rem .35rem .25rem;
  text-align: center;
  color: var(--network-ink);
}

body.networkDetail .networkPath a span { font-size: .82rem; }
body.networkDetail .networkPath a:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: .25em; }

@media (max-width:600px) {
  body.networkDetail .networkPath { grid-template-columns: minmax(0,1fr); gap: .75rem; }
  body.networkDetail .networkPath li:not(:last-child)::after {
    top: 1.08rem;
    left: .45rem;
    width: 2px;
    height: calc(100% + .02rem);
  }
}

@media (prefers-reduced-motion:no-preference) {
  body.networkDetail .networkServicesGrid article {
    transition: background-color .25s ease,border-color .25s ease,box-shadow .25s ease;
  }

  body.networkDetail .networkHero::before { animation: networkWarmDrift 4.8s ease-out both; }
  body.networkDetail .networkPathBoard:is(:hover,:focus-within) li::after { animation: networkSignal 2.4s ease-out both; }

  @keyframes networkWarmDrift {
    from { transform: translate3d(-7%,0,0); opacity: .34; }
    to { transform: translate3d(6%,2%,0); opacity: 1; }
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion:no-preference) {
    body.networkDetail .networkPaths { view-timeline-name: --network-paths; }
    body.networkDetail .networkPaths::before {
      animation: networkWarmDrift linear both;
      animation-timeline: --network-paths;
      animation-range: entry 0% contain 65%;
    }
  }
}


/* Ruhige Flächen lassen den Rot-Orange-Titel und die Signalpunkte hervortreten. */
@supports (background-clip: text) {
  body.servicePage.networkDetail main > .pageHero.networkHero .networkHeroCopy h1,
  body.networkDetail main :is(.networkSectionIntro h2,.networkExample h2,.networkTopology h2) {
    background: var(--network-title) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
  }
}

body.networkDetail .networkPath a::before {
  content: "";
  position: absolute;
  inline-size: .75rem;
  block-size: .75rem;
  inset: .36rem auto auto calc(50% - .375rem);
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c34a39;
  box-shadow: 0 0 0 1px #c34a39,0 0 9px rgba(202,73,53,.35);
}

body.networkDetail .networkPathBoard > div + div .networkPath a::before {
  background: #e08239;
  box-shadow: 0 0 0 1px #c2692d,0 0 9px rgba(224,130,57,.33);
}

@media (max-width:600px) {
  body.networkDetail .networkPath a { min-height: 0; padding: .15rem .25rem .15rem 1.55rem; text-align: left; }
  body.networkDetail .networkPath a::before { inset-inline-start: .1rem; }
}

@media (forced-colors: active) {
  body.networkDetail main :is(.networkHeroCopy h1,.networkSectionIntro h2,.networkExample h2,.networkTopology h2) {
    -webkit-text-fill-color: CanvasText !important;
    color: CanvasText !important;
  }
}


/* Sichtbare Inhalte bleiben auch ohne Animation jederzeit lesbar. */
@media (prefers-reduced-motion: no-preference) {
  body.networkDetail .networkPathBoard.network-in-view li:not(:last-child)::after {
    animation: networkSignal 1.6s ease-out var(--network-entry-delay,0s) both;
  }

  body.networkDetail .networkPathBoard.network-in-view li a::before {
    animation: networkNodePulse .75s ease-out var(--network-entry-delay,0s) both;
  }

  body.networkDetail .networkPathBoard li:nth-child(1) { --network-entry-delay: .18s; }
  body.networkDetail .networkPathBoard li:nth-child(2) { --network-entry-delay: .40s; }
  body.networkDetail .networkPathBoard li:nth-child(3) { --network-entry-delay: .62s; }
  body.networkDetail .networkPathBoard > div + div li:nth-child(1) { --network-entry-delay: .84s; }
  body.networkDetail .networkPathBoard > div + div li:nth-child(2) { --network-entry-delay: 1.06s; }
  body.networkDetail .networkPathBoard > div + div li:nth-child(3) { --network-entry-delay: 1.28s; }

  body.networkDetail .networkScenarios details[open] p {
    animation: networkScrollIn .28s ease-out both;
  }

  @keyframes networkScrollIn {
    from { opacity: .64; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes networkNodePulse {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.3); box-shadow: 0 0 0 4px rgba(238,151,94,.31),0 0 16px rgba(205,80,43,.45); }
  }
}

@media (min-width:901px) and (prefers-reduced-motion: no-preference) {
  body.networkDetail .networkServicesGrid article:nth-child(3n + 2) { --network-entry-delay: .09s; }
  body.networkDetail .networkServicesGrid article:nth-child(3n + 3) { --network-entry-delay: .18s; }
}


/* Die Themenfarben wiederholen sich in der Skizze und im Leistungsraster. */
body.networkDetail :is(.networkBranches li,.networkServicesGrid article) {
  --network-topic-pale: #f1fbff;
  --network-topic-tint: #e0f1fb;
  --network-topic-line: #baddec;
}

body.networkDetail :is(.networkBranches li:nth-child(2),#network-segmente,#network-betrieb) {
  --network-topic-pale: #f1fbf8;
  --network-topic-tint: #e0f4eb;
  --network-topic-line: #b9dfd0;
}

body.networkDetail :is(.networkBranches li:nth-child(3),#network-daten,#network-sicherung) {
  --network-topic-pale: #f9f6ff;
  --network-topic-tint: #eee7f8;
  --network-topic-line: #d8c9ea;
}

body.networkDetail #network-firewall {
  --network-topic-pale: #fff8f2;
  --network-topic-tint: #fbe8db;
  --network-topic-line: #efcab6;
}

body.networkDetail .networkServicesGrid article,
body.networkDetail .networkTopology .networkBranches a {
  background: linear-gradient(140deg,var(--network-topic-pale),var(--network-topic-tint));
  border-color: var(--network-topic-line);
}

body.networkDetail .networkServicesGrid article:is(:hover,:target),
body.networkDetail .networkTopology .networkBranches a:is(:hover,:focus-visible) {
  background: linear-gradient(140deg,#fff,var(--network-topic-tint));
  border-color: var(--network-topic-line);
}
