/* Insights-Übersicht (insights/index.html, en/insights/index.html): editoriales Layout.
   Alles ist unter .hub gekapselt, damit die globalen Regeln aus insights.css (h1-h4, p, ol) hier nicht greifen.
   Animationen: Hero per CSS, alles darunter per js/hub.js (GSAP); ohne JS oder bei "Bewegung reduzieren" ist alles statisch sichtbar. */

.hub {
  --hub-ink: #151515;
  --hub-paper: #f2f2f2;
  --hub-teal: #089289;
  --hub-num-col: clamp(2.5rem, 6vw, 6rem);
  --hub-gap: clamp(1rem, 2vw, 1.5rem);
  --hub-ease: cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  font-family: 'Barlow', sans-serif;
}

/* Fließtext im Hub linksbündig (die Website setzt Absätze global im Blocksatz) */
.hub p {
  text-align: left;
}

/* Keine Silbentrennung in Überschriften, Lede und Index; Fließtext darf trennen.
   Die Website setzt hyphens: auto auf * (jedes Element), daher auch die Kindelemente explizit. */
.hub h1, .hub h1 *, .hub h2, .hub h2 *, .hub h3, .hub h3 *, .hub-lede, .hub-index, .hub-index * {
  hyphens: manual;
}

.hub-dark {
  --hub-muted: #a3a3a3;
  --hub-line: rgba(242, 242, 242, 0.16);
  --hub-accent: #2bb5ab;
  background: var(--hub-ink);
  color: var(--hub-paper);
}

.hub-light {
  --hub-muted: #5c5c5c;
  --hub-line: rgba(21, 21, 21, 0.16);
  --hub-accent: #06756e;
  background: var(--hub-paper);
  color: var(--hub-ink);
}

/* Gleiche Flucht wie die Navigation (.nav-container: padding 0 10vw) */
.hub-wrap {
  margin: 0 auto;
  padding: 0 max(1.25rem, 10vw);
}

.hub-section {
  padding: clamp(5rem, 10vw, 10rem) 0;
}

.hub-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hub-hero {
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 9rem 0 clamp(3rem, 6vw, 5rem);
}

.hub-hero > .hub-wrap {
  width: 100%;
}

.hub-title {
  margin: 0;
  padding-bottom: 0.14em;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: min(21vw, 40rem); /* Inhaltsbreite 80vw, "Einblicke." ist 3,72 em breit */
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: inherit;
}

.hub-title-line {
  display: block;
}

/* Nur der Punkt bewegt sich: er fällt herein, federt zweimal nach und bleibt liegen */
.hub-dot {
  display: inline-block;
  color: var(--hub-teal);
  transform-origin: 50% 88%;
}

.hub-hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: 3rem;
  align-items: end;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--hub-line);
}

.hub-lede {
  margin: 0;
  max-width: 22em;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  line-height: 1.35;
  color: inherit;
}

.hub-index {
  display: flex;
  flex-direction: column;
}

.hub-index a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hub-line);
  font-size: 1.1rem;
  color: var(--hub-paper);
  transition: color 0.3s ease, padding 0.5s var(--hub-ease);
}

.hub-index a:hover,
.hub-index a:focus-visible {
  padding-left: 0.6rem;
  color: var(--hub-accent);
}

.hub-index .hub-label {
  color: var(--hub-muted);
}

@keyframes hub-fade-up {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}

@keyframes hub-dot-drop {
  0% { transform: translateY(-1.1em); opacity: 0; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  8% { opacity: 1; }
  34% { transform: translateY(0) scale(1.3, 0.7); animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  50% { transform: translateY(-0.24em) scale(0.92, 1.08); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  64% { transform: translateY(0) scale(1.14, 0.86); animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  76% { transform: translateY(-0.07em) scale(1); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  86% { transform: translateY(0) scale(1.05, 0.95); }
  100% { transform: none; opacity: 1; }
}

.hub-dot { animation: hub-dot-drop 1.6s linear 0.4s both; }
.hub-hero-foot { animation: hub-fade-up 1s var(--hub-ease) 0.9s both; }

/* ---------- Abschnittsköpfe ---------- */

.hub-head {
  position: relative;
  display: grid;
  grid-template-columns: var(--hub-num-col) minmax(0, 1fr) auto;
  column-gap: var(--hub-gap);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  padding-bottom: 1.5rem;
}

.hub-head-num {
  grid-column: 1;
  grid-row: 1;
  padding-bottom: 0.9em;
  color: var(--hub-accent);
}

.hub-head-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: inherit;
}

.hub-head-count {
  grid-column: 3;
  grid-row: 1;
  padding-bottom: 0.9em;
  white-space: nowrap;
  color: var(--hub-muted);
}

.hub-head-sub {
  grid-column: 2;
  grid-row: 2;
  margin: 0.9rem 0 0;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--hub-muted);
}

.hub-head-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hub-line);
  transform-origin: left center;
}

.hub-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hub-mask-inner {
  display: block;
}

/* ---------- Showcases ---------- */

.hub-works {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
  row-gap: clamp(4rem, 8vw, 8rem);
}

.work {
  position: relative;
  grid-column: 1 / -1;
  align-self: start;
}

.work-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  background: #222;
}

.work-media img,
.work-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--hub-ease);
}

.work:hover .work-media img,
.work:hover .work-media video,
.work:focus-within .work-media img,
.work:focus-within .work-media video {
  transform: scale(1.04);
}

.work:focus-within .work-media {
  outline: 2px solid var(--hub-accent);
  outline-offset: 4px;
}

.work-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--hub-gap);
  margin-top: 1.25rem;
}

.work-num {
  grid-column: 1;
  grid-row: 1;
  padding-top: 0.55em;
  color: var(--hub-accent);
}

.work-heading {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.work-title {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: inherit;
}

.work-link,
.work-link:hover {
  color: inherit;
}

.work-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.work-link:focus-visible {
  outline: none;
}

.work-arrow {
  display: inline-block;
  margin-left: 0.35em;
  color: var(--hub-accent);
  opacity: 0;
  transform: translateX(-0.4em);
  transition: opacity 0.4s ease, transform 0.6s var(--hub-ease);
}

.work:hover .work-arrow,
.work:focus-within .work-arrow {
  opacity: 1;
  transform: none;
}

.work-year {
  white-space: nowrap;
  color: var(--hub-muted);
}

.work-teaser {
  grid-column: 2;
  grid-row: 2;
  max-width: 34em;
  margin: 0.9rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hub-muted);
}

/* Aufmacher: Titel links, Bauplan-Blatt mit dem drehenden Gebäude rechts */
.work--feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
  row-gap: 2.5rem;
  align-items: center;
}

.work--feature .work-meta {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 0;
}

.work--feature .work-num {
  padding: 0;
}

.work--feature .work-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.work--feature .work-title {
  font-size: clamp(2.5rem, 4.6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.work--feature .work-teaser {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
}

.work--feature:focus-within .blueprint {
  outline: 2px solid var(--hub-accent);
  outline-offset: 6px;
}

/* Bauplan-Blatt: Papier mit Rahmenlinie, Blattangabe, Maßstab, Schriftfeld, Passermarken */
.work--feature > .work-visual {
  grid-column: 6 / -1;
}

/* gespiegelt: Bild links, Text rechts */
.work--feature.is-mirrored > .work-meta {
  grid-column: 8 / -1;
  grid-row: 1;
}

.work--feature.is-mirrored > .work-visual {
  grid-column: 1 / span 7;
  grid-row: 1;
}

.blueprint {
  --bp-ink: #151515;
  --bp-muted: #5c5c5c;
  position: relative;
  margin: 0;
  padding: 0.75rem;
  background: #f2f2f2;
  color: var(--bp-ink);
}

.blueprint-frame {
  border: 1.5px solid var(--bp-ink);
}

.blueprint-drawing {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e5e5e5;
}

.blueprint-drawing video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--hub-ease);
}

.work--feature:hover .blueprint-drawing video,
.work--feature:focus-within .blueprint-drawing video {
  transform: scale(1.03);
}

.blueprint-tag,
.blueprint-scale {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.blueprint-tag {
  top: 0.9rem;
  left: 1rem;
  font-size: 0.65rem;
  color: var(--bp-muted);
}

.blueprint-scale {
  left: 1rem;
  bottom: 0.9rem;
  display: grid;
  grid-template-columns: 10rem auto;
  column-gap: 0.9rem;
  align-items: end;
}

.blueprint-scale-bar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  height: 0.45rem;
  border: 1px solid var(--bp-ink);
}

.blueprint-scale-bar span {
  flex: 1;
}

.blueprint-scale-bar span:nth-child(odd) {
  background: var(--bp-ink);
}

.blueprint-scale-labels {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.blueprint-scale-ratio {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.blueprint-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  border-top: 1.5px solid var(--bp-ink);
}

.bp-cell {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  border-top: 1px solid var(--bp-ink);
}

.bp-cell:first-child {
  grid-column: 1 / -1;
  border-top: 0;
}

/* feste Spaltenbreiten, damit die Trennlinien von Technologien und Stand untereinander fluchten */
.bp-cell--narrow {
  grid-template-columns: 8.5rem 11.5rem;
  border-left: 1px solid var(--bp-ink);
}

.bp-cell dt {
  hyphens: manual;
  white-space: nowrap;
  padding: 0.7rem 0.8rem;
  border-right: 1px solid var(--bp-ink);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bp-muted);
}

.bp-cell dd {
  margin: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.blueprint-corner {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border: 0 solid var(--hub-accent);
  pointer-events: none;
}

.blueprint-corner--tl {
  top: -0.9rem;
  left: -0.9rem;
  border-top-width: 2px;
  border-left-width: 2px;
  transform-origin: top left;
}

.blueprint-corner--br {
  right: -0.9rem;
  bottom: -0.9rem;
  border-right-width: 2px;
  border-bottom-width: 2px;
  transform-origin: bottom right;
}

/* Unter 1280px ist das Blatt zu schmal für zwei Spalten im Schriftfeld: alle Felder untereinander */
@media screen and (max-width: 1279px) {
  .blueprint-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .bp-cell--narrow {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    border-left: 0;
  }
}

@media screen and (max-width: 1023px) {
  .work--feature > .work-meta,
  .work--feature > .work-visual,
  .work--feature.is-mirrored > .work-meta,
  .work--feature.is-mirrored > .work-visual {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .work--feature > .work-visual {
    order: -1;
  }
}

/* Kleine Karten: drei nebeneinander, die mittlere (zweite kleine) leicht versetzt, egal wie viele große Karten davor stehen */
@media screen and (min-width: 1024px) {
  .work--small { grid-column: span 4; }
  .work--feature + .work--small + .work--small { margin-top: clamp(3rem, 6vw, 6rem); }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .work--small { grid-column: span 6; }
}

.work--small .work-title {
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
}

.work--small .work-teaser {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  font-size: 0.95rem;
}

/* ---------- Datengartln: Bezirkskarte mit U-Bahn nach Fahrplan ----------
   Quellen: Bezirke/Einwohner LH München (dl-de/by-2-0), Mieten Statistisches Amt München (Indikatorenatlas),
   Fahrplan MVV (CC BY 4.0), Strecken OpenStreetMap (ODbL). Farbskala Grün-Teal wie die Akzente der Seite.
   Ohne Kasten: die Karte steht frei und läuft links über den Seitenrand (html schneidet horizontal ab). */

.dg-map {
  --dg-low: #0d231e;
  --dg-high: #4ff0c0;
  --dg-ink: #f2f2f2;
  position: relative;
  z-index: 2; /* über dem Karten-Link: die Karte ist ein eigenes Bedienelement und führt nicht zum Beitrag */
  margin: 0;
  color: var(--dg-ink);
}

.dg-map-svg {
  display: block;
  width: calc(100% + 10vw + 4rem);
  height: auto;
  margin-left: calc(-10vw - 4rem);
  overflow: visible;
}

.dg-d {
  --v: 0.3;
  fill: color-mix(in oklab, var(--dg-high) calc(var(--v) * 100%), var(--dg-low));
  stroke: rgb(212 245 234 / 0.32);
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 1.2s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease, stroke 0.3s ease;
}

.dg-map.is-hovering .dg-d {
  opacity: 0.5;
}

.dg-map.is-hovering .dg-d.is-hover {
  opacity: 1;
  stroke: #ffffff;
  stroke-width: 2;
}

.dg-line {
  fill: none;
  stroke: rgb(242 242 242 / 0.5);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.dg-station {
  fill: #151515;
  stroke: rgb(242 242 242 / 0.7);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.dg-station.is-hub {
  stroke: rgb(242 242 242 / 0.9);
}

.dg-train {
  fill: #ffffff;
}

.dg-trains {
  filter: drop-shadow(0 0 3px rgb(79 240 192 / 0.9));
}

.dg-net {
  pointer-events: none;
}

.dg-map-head {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  gap: 0.45rem;
  text-shadow: 0 0 6px #151515;
}

.dg-map-tag,
.dg-map-clock {
  font-size: 0.65rem;
  color: rgb(242 242 242 / 0.65);
}

.dg-map-clock {
  font-variant-numeric: tabular-nums;
  color: rgb(212 245 234 / 0.85);
}

.dg-map-north {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.dg-map-north-arrow {
  width: 0;
  height: 0;
  border-left: 0.35rem solid transparent;
  border-right: 0.35rem solid transparent;
  border-bottom: 0.85rem solid var(--hub-accent);
}

.dg-map-panel {
  position: absolute;
  right: 0;
  bottom: 2.6rem;
  display: grid;
  gap: 0.4rem;
  min-width: 15.5rem;
  text-shadow: 0 0 6px #151515;
  cursor: default;
}

.dg-map-legend-label {
  font-size: 0.6rem;
  color: rgb(242 242 242 / 0.6);
}

.dg-map-dataset {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dg-map-dataset.is-swapping {
  opacity: 0;
  transform: translateY(0.3rem);
}

.dg-map-ramp {
  display: block;
  height: 0.35rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, var(--dg-low), var(--dg-high));
  box-shadow: inset 0 0 0 1px rgb(212 245 234 / 0.25);
}

.dg-map-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-variant-numeric: tabular-nums;
  color: rgb(242 242 242 / 0.7);
}

/* Umschalter: eine Leiste, die Markierung gleitet unter den gewählten Eintrag (Position per js/hub.js) */
.dg-toggle {
  position: relative;
  display: inline-flex;
  justify-self: start;
  margin-top: 0.5rem;
  padding: 3px;
  border: 1px solid rgb(212 245 234 / 0.22);
  border-radius: 999px;
  background: rgb(13 35 30 / 0.7);
  backdrop-filter: blur(6px);
  text-shadow: none;
}

.dg-toggle-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 0;
  border-radius: 999px;
  background: var(--hub-teal);
  transition: left 0.45s var(--hub-ease), width 0.45s var(--hub-ease);
}

.dg-toggle-btn {
  position: relative;
  z-index: 1;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgb(242 242 242 / 0.65);
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dg-toggle-btn:hover {
  color: #ffffff;
}

.dg-toggle-btn[aria-pressed="true"] {
  color: #ffffff;
}

.dg-toggle-btn:focus-visible {
  outline: 2px solid var(--hub-accent);
  outline-offset: 2px;
}

.dg-map-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 32rem;
  font-size: 0.55rem;
  line-height: 1.45;
  text-align: right;
  color: rgb(242 242 242 / 0.45);
}

/* Tooltip beim Überfahren eines Bezirks (nur Maus, js/hub.js) */
.dg-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  min-width: 14rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgb(212 245 234 / 0.18);
  border-radius: 12px;
  background: rgb(13 35 30 / 0.94);
  backdrop-filter: blur(6px);
  color: #f2f2f2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dg-tip.is-visible {
  opacity: 1;
}

.dg-tip-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.dg-tip-num {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--hub-accent);
}

.dg-tip-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.dg-tip dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  margin: 0;
  font-size: 0.85rem;
}

.dg-tip dt {
  color: rgb(212 245 234 / 0.65);
}

.dg-tip dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dg-tip dt.is-active,
.dg-tip dd.is-active {
  color: var(--dg-high);
  font-weight: 600;
}

.dg-tip-note {
  margin: 0.6rem 0 0;
  font-size: 0.65rem;
  color: rgb(212 245 234 / 0.5);
}

/* ---------- 3D Personas: Video mit CRIPZ-Wand und Avataren (img/personas), darüber das Schild ---------- */

.personas-stage {
  --personas-wall: #89a59f; /* Wandfarbe im Video */
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: var(--personas-wall);
  container-type: inline-size;
}

.personas-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personas-badge {
  position: absolute;
  top: 9%;
  left: 50%;
  z-index: 1;
  margin: 0;
  padding: 1.6cqw 4cqw;
  transform: translateX(-50%);
  border: 2px solid rgb(255 255 255 / 0.85);
  background: var(--personas-wall);
  color: #fff;
  font-size: max(0.6rem, 1.35cqw);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

/* .hub p setzt linksbündig, der Kasten bleibt zentriert */
.hub .personas-badge {
  text-align: center;
}

/* Unter ca. 700px greift die Mindestschriftgröße; das Schild wird dann kompakter und rückt nach oben,
   damit es zwischen den Köpfen im Video bleibt */
@container (max-width: 700px) {
  .personas-badge {
    top: 3%;
    padding: 1.2cqw 2.5cqw;
    font-size: 0.55rem;
    line-height: 1.45;
    letter-spacing: 0.14em;
  }
}

/* ---------- Impulse: Index-Liste ---------- */

.hub .hub-list,
.hub .hub-methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Methoden: Linie über der ersten Zeile, weil zwischen Kopf und Liste das Laufband steht */
.hub .hub-methods {
  border-top: 1px solid var(--hub-line);
}

.hub .entry {
  position: relative;
  display: grid;
  grid-template-columns: var(--hub-num-col) minmax(0, 1fr) 9rem 4rem 2rem;
  column-gap: var(--hub-gap);
  align-items: center;
  margin: 0;
  padding: clamp(1.25rem, 2.4vw, 2rem) 0;
  border-bottom: 1px solid var(--hub-line);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 1rem;
}

.entry-num {
  color: var(--hub-accent);
}

.entry-title {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: inherit;
  transition: transform 0.6s var(--hub-ease), color 0.3s ease;
}

.entry-link,
.entry-link:hover {
  color: inherit;
}

.entry-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.entry-link:focus-visible {
  outline: none;
}

.entry:focus-within {
  outline: 2px solid var(--hub-accent);
  outline-offset: 4px;
}

.entry-type,
.entry-year {
  color: var(--hub-muted);
}

.entry-year {
  text-align: right;
}

.entry-arrow {
  justify-self: end;
  font-size: 1.25rem;
  color: var(--hub-accent);
  opacity: 0;
  transform: translateX(-0.75rem);
  transition: opacity 0.4s ease, transform 0.6s var(--hub-ease);
}

.entry:hover .entry-title,
.entry:focus-within .entry-title {
  transform: translateX(1rem);
  color: var(--hub-accent);
}

.entry:hover .entry-arrow,
.entry:focus-within .entry-arrow {
  opacity: 1;
  transform: none;
}

/* ---------- Methoden ---------- */

.hub-marquee {
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  white-space: nowrap;
  user-select: none;
}

.hub-marquee-track {
  display: inline-flex;
  animation: hub-marquee 50s linear infinite;
}

.hub-marquee-item {
  padding-right: 0.45em;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 242, 242, 0.45);
}

.hub-marquee-item:nth-child(3n + 1) {
  color: var(--hub-paper);
  -webkit-text-stroke: 0;
}

.hub-marquee-sep {
  padding-right: 0.45em;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1.05;
  color: var(--hub-teal);
}

@keyframes hub-marquee {
  to { transform: translateX(-50%); }
}

.hub .method {
  display: grid;
  grid-template-columns: var(--hub-num-col) minmax(0, 1fr) minmax(0, 1.35fr);
  column-gap: var(--hub-gap);
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.75rem) 0;
  border-bottom: 1px solid var(--hub-line);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 1rem;
}

.method-num {
  padding-top: 0.75em;
  color: var(--hub-accent);
}

.method-title {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: inherit;
}

.method-tools {
  margin: 0.7rem 0 0;
  color: var(--hub-muted);
}

.method-text p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(242, 242, 242, 0.8);
}

.method-text p:last-child {
  margin-bottom: 0;
}

.method-text a {
  color: var(--hub-accent);
  text-decoration: underline;
}

/* ---------- Workflow ---------- */

.hub-intro {
  max-width: 40em;
  margin: 0 0 3rem;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 300;
  line-height: 1.45;
  color: inherit;
}

.hub .explanation h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hub .explanation p {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

@media screen and (min-width: 1024px) {
  .hub-indent {
    padding-left: calc(var(--hub-num-col) + var(--hub-gap));
  }
}

/* ---------- Bildvorschau in der Impulse-Liste (nur Maus, per js/hub.js) ---------- */

.hub-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}

.hub-preview {
  width: clamp(16rem, 24vw, 24rem);
  aspect-ratio: 2 / 1;
}

.hub-preview-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.5s var(--hub-ease), opacity 0.3s ease;
}

.hub-preview.is-active .hub-preview-inner {
  opacity: 1;
  transform: scale(1);
}

.hub-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hub-preview img.is-current {
  opacity: 1;
}

/* ---------- Mobil ---------- */

@media screen and (max-width: 768px) {
  .hub-hero { min-height: 0; padding-top: 8rem; }
  .hub-hero-foot { grid-template-columns: 1fr; gap: 2rem; }

  .hub-head { grid-template-columns: var(--hub-num-col) minmax(0, 1fr); }
  .hub-head-count { grid-column: 2; grid-row: 3; padding: 0.75rem 0 0; }

  .work-meta { grid-template-columns: var(--hub-num-col) minmax(0, 1fr); }

  /* Karte mobil zu beiden Seiten angeschnitten, Legende und Quellen unter der Karte */
  .dg-map-svg { width: calc(100% + 20vw + 2rem); margin-left: calc(-10vw - 1rem); }
  .dg-map-panel, .dg-map-credit { position: static; margin-top: 1rem; text-align: left; }
  .dg-toggle-btn { padding: 0.5rem 0.6rem; letter-spacing: 0.1em; }

  /* Handy: Zeichnung höher, damit Blattangabe und Maßstab nicht im Gebäude liegen; contain statt Zuschnitt */
  .blueprint-drawing { aspect-ratio: 4 / 3; }
  .blueprint-drawing video { object-fit: contain; }
  .blueprint-block { grid-template-columns: minmax(0, 1fr); }
  .bp-cell { grid-template-columns: 8rem minmax(0, 1fr); }
  .bp-cell dt { letter-spacing: 0.12em; }
  .bp-cell--narrow { border-left: 0; }
  .blueprint-scale { grid-template-columns: 6rem auto; }

  .hub .entry { grid-template-columns: var(--hub-num-col) minmax(0, 1fr); row-gap: 0.5rem; }
  .entry-num { align-self: start; padding-top: 0.6em; }
  .entry-type { grid-column: 2; grid-row: 2; }
  .entry-year { grid-column: 2; grid-row: 2; justify-self: end; }
  .entry-arrow { display: none; }

  .hub .method { grid-template-columns: var(--hub-num-col) minmax(0, 1fr); }
  .method-text { grid-column: 2; margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-dot,
  .hub-hero-foot,
  .hub-marquee-track {
    animation: none;
  }
}
