
.gd, .gd-overlay {
  --gd-blau: var(--accent, #026CDF);
  --gd-blau-dunkel: #0147B1;
  --gd-blau-hell: var(--accent-soft, #DCEBFF);
  --gd-marke: var(--navy, #14253A);
  --gd-text: var(--ink, #2b3033);
  --gd-neben: var(--grey, #61686c);
  --gd-leise: var(--grey-muted, #868B8E);
  --gd-linie: var(--linie, #dbe3ea);
  --gd-rand: var(--border, #e9e9e9);
  --gd-grund: var(--bg, #f5f5f5);
  --gd-weiss: #ffffff;
}

.gd {
  container-type: inline-size;
  position: relative; margin: 0; min-width: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 0.75rem; border-radius: 16px; border: 1px solid var(--gd-rand);
  background: var(--gd-weiss); color: var(--gd-text);
  box-shadow: 0 6px 18px rgba(43, 48, 51, .08);
  text-align: left; font-size: 1.0625rem; line-height: 1.5;
}
.gd-kennung {
  display: inline-block; padding: 0 0.5rem; border-radius: 999px; border: 1px dashed var(--gd-neben);
  color: var(--gd-neben); font-size: 0.75rem; font-weight: 700; line-height: 1.6; letter-spacing: 0.04em;
}

.gd__buehne { position: relative; min-width: 0; border-radius: 12px; background: #e9e9ea; overflow: hidden; }
.gd__svg { display: block; width: 100%; height: min(56vh, 34rem); font-family: inherit; }
.gd-grund { fill: #e9e9ea; }
.gd-loch { fill: #000; }
.gd-loch--bahn { fill: none; stroke: #000; stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; }

.gd-schleier rect { fill: var(--gd-marke); opacity: 0; transition: opacity 320ms ease; pointer-events: none; }
.gd-schleier rect.is-an { opacity: .78; }

.gd-bereich { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.gd-form { fill: rgba(255, 255, 255, 0); stroke: none; pointer-events: all; }
.gd-form--bahn { fill: none; stroke: rgba(255, 255, 255, 0); stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; pointer-events: stroke; }
.gd-bereich.is-gezeigt .gd-form { stroke: rgba(255, 255, 255, .95); stroke-width: 5; stroke-linejoin: round; filter: url(#gdSchein); }
.gd-bereich.is-gezeigt .gd-form--bahn { stroke: rgba(255, 255, 255, .28); stroke-width: 30; filter: none; }
.gd-zeiger { fill: none; stroke: var(--gd-marke); stroke-width: 2; opacity: .55; pointer-events: none; }
.gd-zeigerpunkt { fill: var(--gd-weiss); stroke: var(--gd-blau); stroke-width: 3; pointer-events: none; }
.gd-marke-text { font-size: 24px; font-weight: 700; fill: var(--gd-marke); paint-order: stroke; stroke: #e9e9ea; stroke-width: 6px; stroke-linejoin: round; }
.gd-bereich:focus-visible .gd-marke-text { fill: var(--gd-blau-dunkel); text-decoration: underline; }
.gd-bereich:focus-visible .gd-zeigerpunkt { stroke-width: 6; }
.gd-bereich.is-gezeigt .gd-marke-text { fill: var(--gd-weiss); stroke: var(--gd-marke); }
.gd-bereich.is-gezeigt .gd-bereich.is-gezeigt .gd-zeiger { stroke: var(--gd-weiss); opacity: 1; }

.gd__wahl { display: none; }
@container (max-width: 50rem) {
  .gd--js .gd__wahl { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; }
  .gd__wahl button { min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--gd-blau); background: var(--gd-weiss); color: var(--gd-blau-dunkel); font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
  .gd__wahl button[aria-pressed="true"] { background: var(--gd-blau); color: var(--gd-weiss); }
  .gd__wahl button:focus-visible { outline: 3px solid var(--gd-blau-dunkel); outline-offset: 2px; }
  .gd-marke-text, .gd-zeiger, .gd-zeigerpunkt, }

.gd__blase { display: grid; gap: 1rem; padding: 0.75rem; }
.gd__blase-zu { display: none; }
.gd-text__titel { margin: 0 0 0.25rem; font-size: 1.25rem; line-height: 1.25; color: var(--gd-marke); }
.gd-text__fach { display: block; font-size: 0.75rem; font-weight: 600; color: var(--gd-neben); letter-spacing: 0.02em; }
.gd-text p { margin: 0; font-size: 0.875rem; line-height: 1.5; }
.gd-text p + p { margin-top: 0.5rem; }
.gd-marke { display: inline-block; padding: 0 0.5rem; border-radius: 999px; background: var(--gd-blau-hell); color: var(--gd-blau-dunkel); font-size: 0.75rem; font-weight: 700; line-height: 1.6; vertical-align: 0.15em; }
.gd-marke--geplant { background: transparent; border: 1px dashed var(--gd-neben); color: var(--gd-neben); }
.gd-beispiele { margin: 0.5rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.gd-beispiele li { padding: 0 0.5rem; border-radius: 999px; background: var(--gd-grund); border: 1px solid var(--gd-rand); font-size: 0.75rem; line-height: 1.7; }
.gd__graph-knopf {
  display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 0.5rem; padding: 0 1rem; border-radius: 999px;
  border: 2px solid var(--gd-blau); background: var(--gd-blau); color: var(--gd-weiss); font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer;
}
.gd__graph-knopf:focus-visible { outline: 3px solid var(--gd-blau-dunkel); outline-offset: 2px; }

.gd--js .gd-text { display: none; }
.gd--js .gd-text.is-aktiv { display: block; }
.gd--js .gd__blase { display: none; }
.gd--js .gd__blase.is-offen { display: block; margin: 0.5rem; padding: 0.75rem 1rem; border-radius: 14px; background: var(--gd-weiss); border: 2px solid var(--gd-blau); box-shadow: 0 10px 30px rgba(10, 24, 40, .28); position: relative; }
.gd--js .gd__blase.is-fest .gd__blase-zu {
  display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 0.25rem; right: 0.25rem;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; color: var(--gd-marke); cursor: pointer;
}
.gd__blase-zu svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gd__blase-zu:focus-visible { outline: 3px solid var(--gd-blau); outline-offset: -4px; }
.gd--js .gd__blase.is-fest .gd-text__titel { padding-right: 2.5rem; }
@container (min-width: 50rem) {
  .gd--js .gd__blase.is-offen {
    position: absolute; z-index: 3; margin: 0; width: min(22rem, 34%); top: var(--gd-oben, 1rem);
    pointer-events: none;
  }
  .gd--js .gd__blase.is-fest { pointer-events: auto; }
  .gd--js .gd__blase[data-gd-seite="links"] { left: 0.75rem; }
  .gd--js .gd__blase[data-gd-seite="rechts"] { right: 0.75rem; }
  .gd--js .gd__blase.is-offen::after {
    content: ""; position: absolute; top: var(--gd-zipfel, 2rem); width: 1rem; height: 1rem; background: var(--gd-weiss);
    border: 2px solid var(--gd-blau); border-left: 0; border-bottom: 0;
  }
  .gd--js .gd__blase[data-gd-seite="links"]::after { right: -0.6rem; transform: rotate(45deg); }
  .gd--js .gd__blase[data-gd-seite="rechts"]::after { left: -0.6rem; transform: rotate(225deg); }
}

.gd__unterschrift { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; font-size: 0.75rem; color: var(--gd-neben); }
.gd__ki { position: absolute; right: 0.5rem; bottom: 0.5rem; z-index: 1; display: inline-block; padding: 0.05rem 0.5rem; font-size: 0.75rem; color: var(--gd-neben); border-radius: 999px; border: 1px solid var(--gd-linie); background: var(--gd-weiss); font-weight: 600; line-height: 1.5; }
.gd__hinweis { margin-left: auto; font-weight: 600; }
.gd__nur-finger { display: none; }
@media (hover: none) { .gd__nur-maus { display: none; } .gd__nur-finger { display: inline; } }
.gd:not(.gd--js) .gd__hinweis { display: none; }

.gd-overlay { position: relative; }
.gd-overlay__grund { display: none; }
.gd-overlay__fenster {
  position: relative; padding: 1.5rem; border-radius: 16px; border: 2px solid var(--gd-blau);
  background: var(--gd-weiss); color: var(--gd-text); text-align: left; font-size: 1.0625rem; line-height: 1.5;
}
.gd-overlay[data-gd-schwebt] { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.gd-overlay[data-gd-schwebt][hidden] { display: none; }
.gd-overlay[data-gd-schwebt] .gd-overlay__grund { display: block; position: absolute; inset: 0; background: rgba(10, 24, 40, .72); }
.gd-overlay[data-gd-schwebt] .gd-overlay__fenster {
  width: min(76rem, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto;
  box-shadow: 0 24px 64px rgba(43, 48, 51, .28); animation: gd-auf 320ms ease-out;
}
@keyframes gd-auf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gd-overlay__zu {
  position: absolute; top: 0.5rem; right: 0.5rem; display: none; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--gd-rand); background: var(--gd-weiss);
  color: var(--gd-marke); cursor: pointer;
}
.gd-overlay[data-gd-schwebt] .gd-overlay__zu { display: inline-flex; }
.gd-overlay__zu svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gd-overlay__zu:focus-visible { outline: 3px solid var(--gd-blau); outline-offset: 2px; }
@media (hover: hover) { .gd-overlay__zu:hover { border-color: var(--gd-blau); color: var(--gd-blau); } }
.gd-overlay__titel { margin: 0.25rem 3rem 0.75rem 0; font-size: 1.5rem; line-height: 1.25; color: var(--gd-marke); }
.gd-stufen { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.gd-overlay:not([data-gd-schwebt]) .gd-stufen { display: none; }
.gd-stufen__knopf, .gd-stufen__weiter {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.25rem 1rem; border-radius: 999px;
  border: 1px solid var(--gd-linie); background: var(--gd-weiss); color: var(--gd-marke); font: inherit; font-weight: 700; cursor: pointer;
}
.gd-stufen__nr {
  display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--gd-blau-hell); color: var(--gd-blau-dunkel); font-size: 0.875rem;
}
.gd-stufen__knopf[aria-pressed="true"] { border-color: var(--gd-blau); background: var(--gd-blau); color: var(--gd-weiss); }
.gd-stufen__knopf[aria-pressed="true"] .gd-stufen__nr { background: var(--gd-weiss); color: var(--gd-blau-dunkel); }
.gd-stufen__weiter { margin-left: auto; border-color: var(--gd-blau); color: var(--gd-blau-dunkel); }
.gd-stufen__knopf:focus-visible, .gd-stufen__weiter:focus-visible { outline: 3px solid var(--gd-blau); outline-offset: 2px; }
@media (hover: hover) { .gd-stufen__knopf:hover, .gd-stufen__weiter:hover { border-color: var(--gd-blau); } }

.gd-stufentext { display: grid; margin: 0 0 0.75rem; }
.gd-stufentext__teil { margin: 0; color: var(--gd-text); }
.gd-overlay[data-gd-schwebt] .gd-stufentext__teil { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 320ms ease; }
.gd-overlay[data-gd-stufe="1"] [data-gd-stufe-text="1"],
.gd-overlay[data-gd-stufe="2"] [data-gd-stufe-text="2"],
.gd-overlay[data-gd-stufe="3"] [data-gd-stufe-text="3"] { visibility: visible; opacity: 1; }
.gd-overlay:not([data-gd-schwebt]) .gd-stufentext { gap: 0.5rem; }
.gd-stufentext__frage { font-style: italic; font-weight: 700; color: var(--gd-marke); }
.gd-kopie {
  display: inline-flex; align-items: center; min-height: 1.75rem; margin: 0 0.25rem; padding: 0 0.75rem; border-radius: 999px;
  border: 1px solid var(--gd-blau); background: var(--gd-weiss); color: var(--gd-blau-dunkel); font: inherit; font-size: 0.875rem; font-weight: 700;
  cursor: pointer; vertical-align: baseline; position: relative;
}
.gd-kopie::after { content: ""; position: absolute; inset: -0.5rem -0.25rem; }
.gd-kopie.is-done { background: var(--gd-blau); color: var(--gd-weiss); }
.gd-kopie:focus-visible { outline: 3px solid var(--gd-blau); outline-offset: 2px; }
.gd-overlay:not([data-gd-schwebt]) .gd-kopie { display: none; }

.gd-netz { position: relative; margin-inline: auto; border-radius: 12px; border: 1px solid var(--gd-linie); background: #f7fafd; overflow: hidden; }
.gd-netz__beispiel {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 1; padding: 0 0.5rem; border-radius: 999px; background: var(--gd-weiss);
  border: 1px solid var(--gd-linie); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gd-neben);
}
.gd-netz__bild { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.gd-overlay[data-gd-schwebt] .gd-netz { max-width: max(20rem, calc((100dvh - 19rem) * 16 / 9)); }

.gd-netz__welt { transform-origin: 0 0; transform: scale(4) translate(-450px, -253.125px); transition: transform 1100ms cubic-bezier(0.4, 0, 0.2, 1); }
.gd-overlay[data-gd-stufe="2"] .gd-netz__welt { transform: none; }
.gd-netz__weit { opacity: 0; transition: opacity 900ms ease; }
.gd-overlay[data-gd-stufe="2"] .gd-netz__weit { opacity: 1; }
.gd-overlay[data-gd-stufe="3"] .gd-netz__weit { opacity: 0.28; }
.gd-netz__weit line { stroke: var(--gd-blau); stroke-opacity: 0.3; stroke-width: 0.7; }
.gd-netz__weit circle { fill: var(--gd-marke); fill-opacity: 0.6; }
.gd-netz__weit .is-anschluss { stroke-opacity: 0.55; }

.gd-netz__dok, .gd-netz__fund, .gd-netz__pille, .gd-netz__kantentext, .gd-netz__punkt, .gd-netz__nr, .gd-netz__knoten, .gd-netz__kante line {
  transition: opacity 600ms ease, stroke 600ms ease, fill 600ms ease;
}
.gd-netz__blatt { fill: var(--gd-weiss); stroke: var(--gd-linie); stroke-width: 2; }
.gd-netz__kopf { fill: var(--gd-marke); }
.gd-netz__doktitel { fill: var(--gd-weiss); font-size: 22px; font-weight: 700; }
.gd-netz__dokart { fill: #c9d6e4; font-size: 15px; }
.gd-netz__zeile { fill: #e3e9ef; }
.gd-netz__feld { fill: var(--gd-neben); font-size: 15px; }
.gd-netz__mark { fill: var(--gd-blau-hell); stroke: var(--gd-blau); stroke-width: 1.5; }
.gd-netz__wert { fill: var(--gd-marke); font-size: 18px; font-weight: 700; }
.gd-netz__fund { stroke: var(--gd-blau); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; opacity: 0.7; }
.gd-netz__kante line { stroke: var(--gd-marke); stroke-width: 3; stroke-linecap: round; }
.gd-netz__kantentext { fill: var(--gd-blau-dunkel); font-size: 17px; font-weight: 700; paint-order: stroke; stroke: #f7fafd; stroke-width: 6px; stroke-linejoin: round; }
.gd-netz__pille rect { fill: var(--gd-weiss); stroke: var(--gd-blau); stroke-width: 3; }
.gd-netz__typ { fill: var(--gd-blau-dunkel); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.gd-netz__name { fill: var(--gd-marke); font-size: 20px; font-weight: 700; }
.gd-netz__punkt { fill: var(--gd-blau); opacity: 0; }
.gd-netz__nr { opacity: 0; }
.gd-netz__nr circle { fill: var(--gd-blau); }
.gd-netz__nr text { fill: var(--gd-weiss); font-size: 17px; font-weight: 700; }
.gd-netz__hof { fill: var(--gd-blau); fill-opacity: 0.07; stroke: var(--gd-blau); stroke-width: 4; stroke-dasharray: 10 14; opacity: 0; transition: opacity 600ms ease; }
.gd-overlay[data-gd-stufe="2"] .gd-netz__hof { opacity: 1; transition-delay: 700ms; }

.gd-overlay[data-gd-stufe="2"] .gd-netz__dok, .gd-overlay[data-gd-stufe="2"] .gd-netz__fund,
.gd-overlay[data-gd-stufe="2"] .gd-netz__pille, .gd-overlay[data-gd-stufe="2"] .gd-netz__kantentext { opacity: 0; }
.gd-overlay[data-gd-stufe="2"] .gd-netz__punkt { opacity: 1; }
.gd-overlay[data-gd-stufe="2"] .gd-netz__kante line { stroke: var(--gd-blau); stroke-width: 5; }

.gd-overlay[data-gd-stufe="3"] .gd-netz__dok, .gd-overlay[data-gd-stufe="3"] .gd-netz__fund { opacity: 0; }
.gd-overlay[data-gd-stufe="3"] [data-gd-knoten="server"], .gd-overlay[data-gd-stufe="3"] [data-gd-kante="laeuft"] { opacity: 0.3; }
.gd-overlay[data-gd-stufe="3"] .gd-netz__kante:not([data-gd-kante="laeuft"]) line {
  stroke: var(--gd-blau); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: gd-weg 600ms ease-out forwards;
}
.gd-overlay[data-gd-stufe="3"] .gd-netz__nr { animation: gd-ein 300ms ease-out forwards; }
.gd-overlay[data-gd-stufe="3"] [data-gd-kante="hersteller"] line { animation-delay: 1200ms; }
.gd-overlay[data-gd-stufe="3"] [data-gd-kante="hersteller"] .gd-netz__nr { animation-delay: 1500ms; }
.gd-overlay[data-gd-stufe="3"] [data-gd-kante="einsatz"] line { animation-delay: 2000ms; }
.gd-overlay[data-gd-stufe="3"] [data-gd-kante="einsatz"] .gd-netz__nr { animation-delay: 2300ms; }
.gd-overlay[data-gd-stufe="3"] [data-gd-kante="leitet"] line { animation-delay: 2800ms; }
.gd-overlay[data-gd-stufe="3"] [data-gd-kante="leitet"] .gd-netz__nr { animation-delay: 3100ms; }
.gd-overlay[data-gd-stufe="3"] [data-gd-knoten="firma"] .gd-netz__pille rect { fill: var(--gd-blau-hell); stroke-width: 5; }
.gd-overlay[data-gd-stufe="3"] [data-gd-knoten="julia"] .gd-netz__pille rect { animation: gd-antwort 400ms ease-out 3500ms forwards; }
.gd-overlay[data-gd-stufe="3"] [data-gd-knoten="julia"] .gd-netz__typ,
.gd-overlay[data-gd-stufe="3"] [data-gd-knoten="julia"] .gd-netz__name { animation: gd-antworttext 400ms ease-out 3500ms forwards; }
.gd-overlay[data-gd-stufe="3"] [data-gd-knoten="projekt"] .gd-netz__pille rect { animation: gd-treffer 400ms ease-out 2600ms forwards; }
@keyframes gd-weg { to { stroke-dashoffset: 0; } }
@keyframes gd-ein { to { opacity: 1; } }
@keyframes gd-treffer { to { fill: var(--gd-blau-hell); stroke-width: 5; } }
@keyframes gd-antwort { to { fill: var(--gd-blau); } }
@keyframes gd-antworttext { to { fill: var(--gd-weiss); } }

@media (max-width: 40rem) {
  .gd-overlay[data-gd-stufe="3"] .gd-netz__welt { transform: scale(6.96) translate(-513.75px, -282.125px); }
  .gd-netz__beispiel { position: static; display: inline-block; margin: 0.25rem 0.5rem; border: 0; background: none; padding: 0; }
  .gd-stufen__knopf { padding: 0.25rem 0.75rem; }
  .gd-stufen__knopf:not([aria-pressed="true"]) > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .gd-stufen__knopf { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  .gd-overlay[data-gd-stufe="3"] .gd-netz__kante:not([data-gd-kante="laeuft"]) line { stroke-dashoffset: 0; }
  .gd-overlay[data-gd-stufe="3"] .gd-netz__nr { opacity: 1; }
  .gd-overlay[data-gd-stufe="3"] [data-gd-knoten="julia"] .gd-netz__pille rect { fill: var(--gd-blau); }
  .gd-overlay[data-gd-stufe="3"] [data-gd-knoten="julia"] .gd-netz__typ,
  .gd-overlay[data-gd-stufe="3"] [data-gd-knoten="julia"] .gd-netz__name { fill: var(--gd-weiss); }
  .gd-overlay[data-gd-stufe="3"] [data-gd-knoten="projekt"] .gd-netz__pille rect { fill: var(--gd-blau-hell); }
}

@media (prefers-reduced-motion: reduce) {
  .gd *, .gd-overlay, .gd-overlay * { transition: none !important; animation: none !important; }
}
