/* Local Suchgebiet entry. Existing project panels and their geometry are frozen. */
#live .portfolio-suchgebiet {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  align-items: start;
  gap: clamp(32px,5vw,76px);
  margin-top: 0;
  padding: 54px 0 12px;
  border: 0;
  color: var(--signal-dark);
}
#live .portfolio-suchgebiet .sg-copy { min-width: 0; max-width: 540px; }
#live .portfolio-suchgebiet .sg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 7px;
  margin: 0 0 14px;
  font: 400 11px/1.7 'Geist Mono',monospace;
  letter-spacing: .045em;
  text-transform: uppercase;
}
#live .portfolio-suchgebiet .sg-meta span { white-space: nowrap; }
#live .portfolio-suchgebiet h3 {
  margin: 0 0 12px;
  font: 500 clamp(40px,4.2vw,64px)/1.02 'Inter Tight',sans-serif;
  letter-spacing: -.045em;
}
#live .portfolio-suchgebiet h3 span { color: var(--signal-coral); }
#live .portfolio-suchgebiet .sg-subtitle {
  max-width: 31ch;
  margin: 0 0 16px;
  font: 400 clamp(18px,1.55vw,22px)/1.35 'Inter Tight',sans-serif;
}
#live .portfolio-suchgebiet .sg-description {
  margin: 0 0 10px;
  font: 400 clamp(16px,1.25vw,18px)/1.55 'Inter Tight',sans-serif;
}
#live .portfolio-suchgebiet .portfolio-project-links { margin-top: 16px; }
#live .portfolio-suchgebiet .sg-figure { min-width: 0; margin: 0; }
#live .portfolio-suchgebiet .sg-visual {
  overflow: hidden;
  border-radius: 5px;
  background: var(--signal-dark);
  color: var(--signal-bone);
}
#live .portfolio-suchgebiet .sg-visual-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 0;
  font: 400 10px/1.5 'Geist Mono',monospace;
  letter-spacing: .04em;
}
#live .portfolio-suchgebiet .sg-graphic {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 700 / 440;
}

/* Keep the original screen stroke widths without non-scaling dash coordinates. */
#live .portfolio-suchgebiet .sg-scale-ready .sg-track {
  vector-effect: none;
  stroke-width: calc(var(--sg-stroke-width) * var(--sg-unit-scale));
}
#live .portfolio-suchgebiet .sg-track { --sg-stroke-width: 1.7px; }
#live .portfolio-suchgebiet .sg-track--center { --sg-stroke-width: 7px; }
#live .portfolio-suchgebiet #sg-track-center { --sg-stroke-width: 2.1px; }

/* Draw each existing track once. Visibility only controls the playback state. */
#live .portfolio-suchgebiet .sg-motion-ready .sg-track {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: sg-track-draw 4.5s linear both;
  animation-play-state: paused;
}
#live .portfolio-suchgebiet .sg-motion-ready .sg-track--center { animation-delay: 4.5s; }
#live .portfolio-suchgebiet .sg-motion-ready .sg-track--right { animation-delay: 9s; }
#live .portfolio-suchgebiet .sg-motion-ready.sg-in-view .sg-track { animation-play-state: running; }
@keyframes sg-track-draw { to { stroke-dashoffset: 0; } }
.reduced #live .portfolio-suchgebiet .sg-motion-ready .sg-track {
  animation: none;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}
@media(prefers-reduced-motion:reduce) {
  #live .portfolio-suchgebiet .sg-motion-ready .sg-track {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
#live .portfolio-suchgebiet .sg-key {
  display: flex;
  gap: 22px;
  padding: 0 22px 18px;
  font: 400 10px/1.5 'Geist Mono',monospace;
}
#live .portfolio-suchgebiet .sg-key span { display: inline-flex; align-items: center; gap: 8px; }
#live .portfolio-suchgebiet .sg-key-area {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid var(--signal-coral);
  background: #F465451a;
}
#live .portfolio-suchgebiet .sg-key-track {
  display: inline-block;
  width: 19px;
  border-top: 2px solid var(--signal-coral);
}
@media(max-width:700px) {
  #live .portfolio-suchgebiet {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    margin-top: 0;
    padding-top: 30px;
  }
  #live .portfolio-suchgebiet .sg-meta { margin-bottom: 10px; }
  #live .portfolio-suchgebiet h3 { margin-bottom: 10px; }
  #live .portfolio-suchgebiet .sg-subtitle { margin-bottom: 12px; }
  #live .portfolio-suchgebiet .portfolio-project-links { margin-top: 12px; }
  #live .portfolio-suchgebiet .sg-visual-head { padding: 12px 16px 0; font-size: 9px; }
  #live .portfolio-suchgebiet .sg-key { padding: 0 16px 12px; gap: 18px; }
}

/* Each finish point appears only when its own route is complete. */
#live .portfolio-suchgebiet .sg-animation-pending .sg-endpoint:not(.sg-route-complete){opacity:0}

/* Waiting routes must not appear complete before the first visible run. */
#live .portfolio-suchgebiet .sg-animation-pending:not(.sg-motion-ready) .sg-track{stroke-dasharray:1 1;stroke-dashoffset:1}
#live .portfolio-suchgebiet .sg-replay{
 display:block;margin:4px 0 0 auto;padding:8px 0;min-height:44px;
 border:0;background:transparent;color:#646962;
 font:400 11px/1.4 'Geist Mono',monospace;cursor:pointer;
 text-decoration:underline;text-underline-offset:3px;
}
#live .portfolio-suchgebiet .sg-replay:is(:hover,:focus-visible){color:var(--signal-coral)}
#live .portfolio-suchgebiet .sg-replay:focus-visible{outline:2px solid var(--signal-coral);outline-offset:3px}
#live .portfolio-suchgebiet .sg-replay:disabled{cursor:default;color:#646962;opacity:.75}
