/**
 * company: cube one GmbH
 * name: netzplan.css
 * author: Thomas Schäfer
 * created: 28.08.2026
 * change log: 29.08.2026 – Thomas Schäfer – Added a responsive five-phase
 *             directory ramp from one to five columns.
 *             29.08.2026 – Thomas Schäfer – Added .netzplan-dir-lead for the
 *             per-phase blurbs in the station directory.
 *             04.09.2026 – Thomas Schäfer – Station links keep injected
 *             abbreviation tooltips in normal text flow; lead links stay inline.
 *             28.08.2026 – Thomas Schäfer – Interactive GxP System Lifecycle
 *             metro map (Folie 8 Netzplan) for the DE/EN overview pair.
 *             28.08.2026 – Thomas Schäfer – Replaced reconstructed SVG map with
 *             the original slide artwork (PNG) plus percentage-positioned
 *             hotspot links derived from the slide XML (EMU coordinates).
 *             28.08.2026 – Thomas Schäfer – Removed the map lead note styles;
 *             section top padding replaces the lead spacing.
 */

.netzplan-section {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 6vw, 5rem);
  background: var(--bg-primary);
}

.netzplan-frame {
  position: relative;
  margin: 0 auto;
  max-width: 1280px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #0c0c0c;
  overflow: hidden;
}

.netzplan-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Map wrapper keeps the slide aspect ratio; below 1100px it scrolls
   horizontally inside .netzplan-scroll so labels stay legible. */
.netzplan-map {
  position: relative;
  width: 1100px;
  min-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 1100px) {
  .netzplan-map {
    width: 100%;
    min-width: 0;
  }
}

.netzplan-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hotspots: percentage rectangles from the slide XML (a:off/a:ext in EMU
   relative to p:sldSz 12192000 x 6858000), dot and label union plus padding. */
.netzplan-hotspot {
  position: absolute;
  display: block;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
}

.netzplan-hotspot:hover,
.netzplan-hotspot:focus-visible {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.12);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.35);
}

.netzplan-hotspot:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.netzplan-hotspot--urs {
  left: 6.32%;
  top: 54.86%;
  width: 12.71%;
  height: 10.37%;
}

.netzplan-hotspot--project-management {
  left: 17.7%;
  top: 15.55%;
  width: 7.76%;
  height: 11.48%;
}

.netzplan-hotspot--pmo {
  left: 28.15%;
  top: 15.55%;
  width: 7.76%;
  height: 11.48%;
}

.netzplan-hotspot--change-management {
  left: 38.51%;
  top: 15.55%;
  width: 7.76%;
  height: 11.48%;
}

.netzplan-hotspot--excelsheet {
  left: 52.79%;
  top: 21.7%;
  width: 10.86%;
  height: 6.27%;
}

.netzplan-hotspot--it-administration {
  left: 64.9%;
  top: 13.87%;
  width: 12.63%;
  height: 6.27%;
}

.netzplan-hotspot--data-conversion {
  left: 80.99%;
  top: 19.75%;
  width: 7.28%;
  height: 10.49%;
}

.netzplan-hotspot--data-readability {
  left: 87.68%;
  top: 19.74%;
  width: 7.28%;
  height: 10.45%;
}

.netzplan-hotspot--market-research {
  left: 16.6%;
  top: 68.34%;
  width: 7.28%;
  height: 11.04%;
}

.netzplan-hotspot--supplier-qualification {
  left: 25.1%;
  top: 68.34%;
  width: 7.28%;
  height: 11.36%;
}

.netzplan-hotspot--di-consulting {
  left: 35.83%;
  top: 55.19%;
  width: 9.54%;
  height: 7.54%;
}

.netzplan-hotspot--di-gap {
  left: 35.83%;
  top: 67.68%;
  width: 13.23%;
  height: 6.27%;
}

.netzplan-hotspot--ki {
  left: 41.59%;
  top: 85.89%;
  width: 6.48%;
  height: 8.17%;
}

.netzplan-hotspot--gxp-qualification {
  left: 51.48%;
  top: 54.66%;
  width: 13.27%;
  height: 6.27%;
}

.netzplan-hotspot--csv {
  left: 51.48%;
  top: 63.99%;
  width: 13.18%;
  height: 6.27%;
}

.netzplan-hotspot--software-development {
  left: 51.48%;
  top: 73.24%;
  width: 10.76%;
  height: 6.27%;
}

.netzplan-hotspot--software-validation {
  left: 51.48%;
  top: 82.48%;
  width: 9.24%;
  height: 6.27%;
}

.netzplan-hotspot--capa {
  left: 59.07%;
  top: 85.89%;
  width: 13.37%;
  height: 10.09%;
}

.netzplan-hotspot--change-control {
  left: 71.51%;
  top: 47.67%;
  width: 10.34%;
  height: 7.54%;
}

.netzplan-hotspot--system-review {
  left: 71.47%;
  top: 60.84%;
  width: 9.32%;
  height: 6.27%;
}

.netzplan-hotspot--system-virtualization {
  left: 85.33%;
  top: 55.48%;
  width: 10.22%;
  height: 6.27%;
}

.netzplan-hotspot--data-archiving {
  left: 85.33%;
  top: 68.38%;
  width: 12.38%;
  height: 6.27%;
}

.netzplan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.netzplan-directory {
  padding: clamp(2rem, 5vw, 4rem) 0 0;
}

.netzplan-directory h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.netzplan-directory > p {
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 0 1.75rem;
}

.netzplan-dir-grid {
  --netzplan-dir-card-min: 260px;

  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, var(--netzplan-dir-card-min)), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.netzplan-dir-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.netzplan-dir-card h3 {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.netzplan-dir-lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.netzplan-dir-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.netzplan-dir-card li > a,
.netzplan-dir-card .netzplan-unlinked {
  display: block;
  min-height: 44px;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
}

.netzplan-dir-card li > a:hover,
.netzplan-dir-card li > a:focus-visible {
  background: var(--bg-card-hover);
  color: var(--accent-light);
}

.netzplan-dir-card .netzplan-dir-lead a {
  display: inline;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(251, 146, 60, 0.35);
  text-underline-offset: 3px;
}

.netzplan-dir-card .netzplan-unlinked {
  color: var(--text-muted);
}

@media (min-width: 1360px) {
  .netzplan-dir-grid {
    --netzplan-dir-card-min: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .netzplan-hotspot,
  .netzplan-dir-card a {
    transition: none;
  }
}
