@font-face {
    font-family: "ABCDiatype";
    src: url("/fonts/ABCDiatypeVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --cm-f6: 0.875rem;
    --cm-f5: 0.875rem;
    --cm-f5-m: 0.75rem;
    --cm-f4: 1.125rem;
    --cm-f3: 1.25rem;
    --cm-f2: 2rem;
    --cm-f1: 2.25rem;
    --cm-f0: 4.5rem;
    --cm-tram-info-text: 1.5rem;
    --cm-tram-outro-text: 1.6rem;
    --cm-tram-outro-title-large: 2.8rem;
    --cm-white: #ffffff;
    --cm-black: #212121;
    --cm-grey-100: #f5f5f5;
    --cm-grey-150: #f2f2f2;
    --cm-grey-300: #e0e0e0;
    --cm-yellow-400: #ffc233;
    --cm-orange-400: #ff8c5c;
    --cm-violet-400: #f455ff;
    --cm-blue-400: #5c83ff;
  }

  .deep-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.deep-overlay.active {
  display: flex;
}

.deep-overlay-inner {
  position: relative; 
}
.deep-overlay-inner {
  width: min(820px, 90vw);
  max-height: 85vh;
  background: white;
  padding: 48px;
  box-sizing: border-box;
  overflow-y: auto;
  color: #111;
  font-size: var(--cm-f4);
  line-height: 1.6;
}

.deep-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: var(--cm-f3);
  cursor: pointer;
}
    html, body {
      margin: 0;
      padding: 0;
      font-family: "ABCDiatype", sans-serif;
      background: black;
      overflow-x: hidden;
    }

    body, button, input, textarea, select {
      font-family: "ABCDiatype", sans-serif;
    }

    .video-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      object-fit: cover;
      object-position: center center;
      z-index: 0;
      pointer-events: none;
    }

    .section {
      position: absolute;
      width: 100%;
      height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: white;
    }

    .chart-container {
  position: fixed;
  top: 50%;
  left: 26%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}

    

.graph-fade {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 12;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.08) 25%,
    rgba(0,0,0,0.00) 45%
  );
}

.chart-wrapper {
      position: absolute;
      width: 100%;
      height: 100%;
      background: transparent;
      border-radius: 12px;
      padding: 18px;
      transition: opacity 0.5s ease;
      opacity: 0;
      pointer-events: none;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      gap: 10px;
      justify-content: flex-start;
    }
    .chart-wrapper.active { opacity: 1; }


    .mobility-diagram {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
}
    .mobility-diagram svg {
      width: 100%;
      height: 100%;
      display: block;
    }
    .mobility-diagram text {
      font-family: "ABCDiatype", sans-serif;
    }

    .mobility-diagram .DiagramObject {
      opacity: 1;
      pointer-events: auto;
    }

   
    #intro-scroll{
      position: relative;
      z-index: 100;
      height: 100vh; 
      overflow: hidden;
      display: block;
      background: var(--cm-white);
    }

    .cm-bg{
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      z-index: 90;
      pointer-events: none;
      background: var(--cm-white);
    }
    .cm-bg-high, .cm-bg-middle, .cm-bg-low, .cm-bg-mobility{
      position: absolute;
      left: 0; top: 0;
      width: 100%; height: 100%;
      will-change: transform;
      display: none;
    }
    .cm-bg-high{ background: rgba(255, 194, 51, 0.24); transform: translateY(-95%); }
    .cm-bg-middle{ background: rgba(255, 140, 92, 0.22); transform: translateY(-95%); }
    .cm-bg-low{ background: rgba(244, 85, 255, 0.18); transform: translateY(5%); }
    .cm-bg-mobility{ background: rgba(92, 131, 255, 0.2); transform: translateY(105%); }

   .cm-text{
  position: fixed;
  left: 0;
  top: 0;        
  bottom: 0;   
  width: 100%;
  height: 100vh;    
  display: flex;
  align-items: center;
  padding: 0 3rem;
  box-sizing: border-box;
  z-index: 95;
  color: var(--cm-black);
  font-size: var(--cm-f2);
  line-height: 1.12;
  pointer-events: none;
}
    .cm-text .cm-inner{
      margin-top: 0;
      width: min(67rem, calc(100vw - 6rem));
      max-width: none;
      margin-left: auto;
      margin-right: auto;
    }
    .cm-text .cm-small{
      font-size: var(--cm-f4);
      opacity: .8;
      margin-top: 1.5rem;
    }

    .cm-kicker{
      font-size: var(--cm-f5);
      line-height: 1.25;
      opacity: 0.7;
      margin-bottom: 1rem;
    }

    .cm-title{
      font-size: var(--cm-f0);
      font-weight: 900;
      line-height: 0.96;
      max-width: none;
    }

    .cm-lead{
      margin-top: 1.5rem;
      max-width: none;
    }

    .cm-button-container{
      position: absolute;
      left: 50%;
      bottom: 5rem;
      transform: translateX(-50%);
      pointer-events: auto;
    }

    .cm-scroll-button{
      display: flex;
      justify-content: center;
      align-items: center;
      height: 3rem;
      width: 19rem;
      cursor: pointer;
      border: 1px solid var(--cm-black);
      color: var(--cm-black);
      background: transparent;
      font-family: "ABCDiatype", sans-serif;
      font-size: var(--cm-f3);
      line-height: 1;
      text-decoration: none;
      transition: background 0.3s, color 0.3s;
    }

    .cm-scroll-button:hover{
      background: var(--cm-black);
      color: var(--cm-white);
    }

    .cm-feature-list{
      display: grid;
      gap: 0.75rem;
      margin-top: 1.5rem;
      max-width: 42rem;
    }

    .cm-feature{
      display: flex;
      align-items: flex-start;
      gap: 0.65rem;
    }

    .cm-feature-dot{
      flex: 0 0 auto;
      width: 0.85rem;
      height: 0.85rem;
      margin-top: 0.38rem;
      border-radius: 50%;
      background: var(--cm-black);
    }

    .cm-feature-dot.work{ background: var(--cm-orange-400); }
    .cm-feature-dot.education{ background: var(--cm-violet-400); }
    .cm-feature-dot.housing{ background: var(--cm-yellow-400); }

    .cm-diagram{
      position: fixed;
      top: 0;
      right: 0;
      width: 50vw;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 94;
      pointer-events: none;
      background: var(--cm-white);
      display: none;
    }
    .intro-card{
      width: min(520px, 42vw);
      background: rgba(255,255,255,0.65);
      border: 1px solid rgba(0,0,0,0.08);
      padding: 18px;
      box-sizing: border-box;
    }

    #cm-diagram.intro-card{
      width: 100%;
      height: 100%;
      background: transparent;
      border: none;
      padding: 0;
      box-sizing: border-box;
    }

    .intro-tramline-svg{
      width: 100%;
      height: 100%;
      display: block;
      overflow: visible;
    }

    .intro-tram-label{
      font-family: "ABCDiatype", sans-serif;
      font-size: var(--cm-f6);
      fill: #111;
      dominant-baseline: middle;
    }

    .intro-tram-label.current{
      font-weight: 700;
    }

    .intro-tram-marker{
      filter: drop-shadow(0 0 8px rgba(255,255,255,0.55));
    }

  
    .info-box {
      display: none;
      position: fixed;
      top: 0;
      right: 280px;
      bottom: 0;
      transform: none;
      width: 36vw;
      max-width: none;
      height: 100vh;
      background: rgba(255, 255, 255, 0.84);
      border-radius: 0;
      padding: 0 2rem;
      box-sizing: border-box;
      color: var(--cm-black);
      z-index: 4;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.5s ease;
      overflow-y: auto;
      box-shadow: none;
      border-left: 1px solid rgba(33,33,33,0.18);
      backdrop-filter: blur(5px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 1rem;
    }
    .info-box.active { display: flex; opacity: 1; pointer-events: auto; }

    .info-box h2,
    .info-box .info-title {
      font-family: "ABCDiatype", sans-serif;
      font-size: var(--cm-f1);
      font-weight: 900;
      line-height: 0.96;
      margin: 0 0 0.5rem 0;
    }

    .info-box p,
    .info-box .info-text {
      font-family: "ABCDiatype", sans-serif;
      font-size: var(--cm-tram-info-text);
      font-weight: 400;
      line-height: 1.18;
      margin: 0;
    }

    
    


.timeline-vertical{
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 2000;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.in-video .timeline-vertical{
  opacity: 1;
}

.station-timeline{
  pointer-events:none;
  position:fixed;
  top:0;
  right:0;
  width:280px;
  height:100vh;
  z-index:7;
  opacity:0;
  transition:opacity 0.2s ease;
  background:rgba(255,255,255,0.84);
  backdrop-filter:blur(5px);
}
body.in-video .station-timeline{
  opacity:1;
}

.station-line{
  position:absolute;
  top:7vh;
  bottom:7vh;
  left:44px;
  width:4px;
  transform:translateX(-50%);
  background:rgba(17,17,17,0.48);
}

.dot{
  pointer-events: auto;
  flex:1 1 0;
  width:100%;
  min-height:0;
  cursor: pointer;
  position:relative;
  transform:none;
  transition:filter 0.18s ease, width 0.18s ease;
  border: none;
}

.dot:hover{
  filter: brightness(1.05);
}

.dot.active{
  filter: brightness(1.16);
  width:24px;
}

.dot::before{
  display:none;
}

.dot.active::before{
  display:none;
}

.dot-label{
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "ABCDiatype", sans-serif;
  font-size: var(--cm-f5-m);
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,0);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.dot.active .dot-label{
  color: rgba(255,255,255,0.98);
  opacity: 1;
}

.station-stop{
  position:absolute;
  left:44px;
  top:var(--stop-y);
  transform:translate(-50%, -50%);
}

.station-stop::before{
  content:"";
  display:block;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--dot-color, var(--cm-blue-400));
  border:3px solid var(--cm-white);
  box-shadow:0 0 0 1px rgba(92,131,255,0.32);
}

.station-stop.active::before{
  width:22px;
  height:22px;
  border-width:4px;
  box-shadow:0 0 0 3px rgba(92,131,255,0.3), 0 0 0 6px rgba(255,255,255,0.9);
}

.station-label{
  position:absolute;
  left:28px;
  top:50%;
  transform:translateY(-50%);
  font-family:"ABCDiatype", sans-serif;
  font-size: var(--cm-f5-m);
  line-height:1.1;
  color:var(--cm-black);
  white-space:nowrap;
}

.station-stop.active .station-label{
  font-weight:900;
}

.station-minor-stop{
  position:absolute;
  left:44px;
  top:var(--stop-y);
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(17,17,17,0.42);
  transform:translate(-50%, -50%);
}





    
    #post-video-slides{
      position: relative;
      z-index: 200;
      height: 100vh;
      overflow: hidden;
      display: block;
    }

    .outro-bg{
      position: fixed;
      inset: 0;
      z-index: 190;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.25s ease;
    }

    .outro-bg-1, .outro-bg-2, .outro-bg-3, .outro-bg-4{
      position: absolute;
      inset: 0;
      will-change: transform;
    }

    .outro-bg-1{ background: rgb(92, 131, 255); transform: translateY(0%); }
    .outro-bg-2{ background: rgb(244, 85, 255); transform: translateY(100%); }
    .outro-bg-3{ background: rgb(255, 140, 92); transform: translateY(200%); }
    .outro-bg-4{ background: rgb(255, 194, 51); transform: translateY(300%); }

    .outro-text{
      position: fixed;
      left: 0;
      top: 12vh;
      width: 100%;
      height: auto;
      display: flex;
      align-items: flex-start;
      padding: 0 3rem;
      box-sizing: border-box;
      z-index: 195;
      color: #111;
      font-size: var(--cm-tram-outro-text);
      line-height: 1.25;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.25s ease;
    }
    .outro-text .outro-inner,
    .outro-text .cm-inner{
      margin-top: 10vh;
      max-width: 56rem;
    }

    .outro-text .outro-small,
    .outro-text .cm-small{
      font-size: var(--cm-f4);
      opacity: .8;
      margin-top: 1rem;
    }

    .outro-text p{
      font-weight: 400;
    }

    .outro-title{
      font-size: var(--cm-f1);
      font-weight: 900;
      line-height: 1.05;
    }

    .outro-title-large{
      font-size: var(--cm-tram-outro-title-large);
      font-weight: 900;
      line-height: 1.05;
    }


    .outro-diagram{
      position: fixed;
      top: 0;
      right: 0;
      width: 50vw;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 194;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.25s ease;
      display: none;
    }

    .outro-card{
      width: min(520px, 42vw);
      background: rgba(255,255,255,0.65);
      border: 1px solid rgba(0,0,0,0.08);
      padding: 18px;
      box-sizing: border-box;
    }

    .video-container { z-index: 1; }


body.past-intro #intro-scroll{
  opacity: 0;
  pointer-events: none;
}

body.in-outro .outro-bg,
body.in-outro .outro-text,
body.in-outro .outro-diagram{
  opacity: 1;
}

.deep-btn{
  position: relative;
  z-index: 50;
  pointer-events: auto;
  margin-top: 10px;
  align-self: flex-start;
  background: none;
  border: 1px solid var(--cm-black);
  padding: 10px 14px;
  font-size: var(--cm-f6);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.deep-btn:hover{
  background: var(--cm-black);
  color: var(--cm-white);
}

.deep-source{
  margin-top: 8px;
  padding-top: 0;
  font-size: var(--cm-f6);
  opacity: 0.8;
}

/* Quellenliste */
.source-list {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 10px;
}

.source-item {
  margin-bottom: 8px;
  padding-left: 1.4em;
  text-indent: -1.4em;
  line-height: 1.4;
}

.change-block{
  position: relative;
  z-index: 1;
  margin-top: 4px;
  margin-bottom: 10px;
}
.change-strength{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:6px;
  font-size: var(--cm-f6);
}
.strength-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  border:1.5px solid #111;
}
.strength-dot.filled{ background:#111; }
.strength-dot.empty{ background:transparent; }
.change-label{
  margin-left:6px;
  font-weight:600;
}
.change-drivers{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  font-size: var(--cm-f6);
}
.driver-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.driver-dot{
  display:none;
}
.driver-dot.work,
.driver-dot.education,
.driver-dot.housing{
  background: var(--cm-black);
}

.driver-label{
  font-weight:600;
  margin-right:6px;
}

.student-credit{
  margin-top: 1rem;
  font-size: var(--cm-f6);
  line-height: 1.35;
  opacity: 0.72;
}

.orientation-note{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--cm-white);
  color: var(--cm-black);
  padding: 1rem;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.orientation-note-inner{
  width: min(24rem, 100%);
  border: 1px solid var(--cm-black);
  padding: 1rem;
  font-size: var(--cm-f4);
  line-height: 1.25;
}

.orientation-note-title{
  display: block;
  margin-bottom: 0.75rem;
  font-size: var(--cm-f2);
  line-height: 0.96;
  font-weight: 600;
}

@media (max-width: 900px) and (orientation: portrait) {
  .orientation-note{
    display: flex;
  }
}
