/* Unterseiten der Abläufe (ablauf/<art>/), Gestaltung aus dem Design-Vorschlag vom 21.10.2026.
   Baut auf ../basis.css auf. Rhythmus: hell (Erster Bildschirm, Ablauf), Königsblau (Freigabe), hell (Personal),
   dunkel (Anfrage), hell (Weitere Abläufe). */

:root {
  --s-display: clamp(2.5rem, 1.5rem + 3.2vw, 4.375rem);
  --z-3d: 1;
  --z-schilder: 2;
  --z-ueber-3d: 3;
  --z-kopf: 10;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-size: var(--s-text);
  font-weight: 430;
  line-height: 1.6;
  background: var(--grund);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 640;
}

h1 {
  font-size: var(--s-display);
  line-height: 1.02;
  letter-spacing: -0.034em;
}

h2 {
  font-size: var(--s-h2);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--s-h3);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}



/* Kopfzeile: hell, schließt beim Scrollen mit einer Linie ab. */
.kopf {
  position: sticky;
  top: 0;
  z-index: var(--z-kopf);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--a-5);
  height: 72px;
  padding: 0 var(--rand);
  background: var(--grund);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 0.3s ease;
}

.kopf.ist-gescrollt {
  box-shadow: 0 1px 0 var(--linie);
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.kopf-wege {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
}

.kopf-zurueck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 580;
  text-decoration: none;
  color: var(--tinte);
}

.kopf-zurueck svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.3s var(--kurve);
}

@media (hover: hover) and (pointer: fine) {
  .kopf-zurueck:hover span {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
  }

  .kopf-zurueck:hover svg {
    transform: translateX(-3px);
  }
}


/* ---------- 3D-Büro ---------- */

.buehne,
.schilder {
  position: fixed;
  inset: 0;
  pointer-events: none;
  clip-path: inset(50% 50% 50% 50%);
}

.buehne {
  z-index: var(--z-3d);
  opacity: 0;
  transition: opacity 0.9s ease;
}

.buehne.ist-bereit {
  opacity: 1;
}

.buehne canvas {
  display: block;
}

.schilder {
  z-index: var(--z-schilder);
  overflow: hidden;
}

.fenster-3d {
  position: relative;
  background: var(--flaeche) center / cover no-repeat;
}

/* ---------- Erster Bildschirm ---------- */

.hero {
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: clamp(28px, 4.5vh, 56px) var(--rand) 0;
}

.hero-kopf {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--a-5);
  row-gap: var(--a-5);
  align-items: end;
}

.hero h1 {
  grid-column: 1 / span 8;
  font-size: clamp(2.375rem, 1.3rem + 2.9vw, 4rem);
  animation: auftritt 0.8s var(--kurve) both;
}

.hero-neben {
  grid-column: 9 / -1;
  display: grid;
  gap: var(--a-5);
  padding-bottom: 6px;
  animation: auftritt 0.8s 0.12s var(--kurve) both;
}

.hero-neben p {
  max-width: 40ch;
  color: color-mix(in oklch, var(--tinte) 84%, white);
}

@keyframes auftritt {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hero-buehne {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  height: clamp(500px, calc(100svh - 360px), 680px);
  margin-top: clamp(28px, 4.5vh, 52px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--flaeche);
}

/* Das Meeting steht ohne eigenes Fenster auf dem dunklen Grund und bekommt deshalb mehr Breite (Schrift wie auf
   der Startseite). */
[data-ablauf='meeting'] .hero-buehne {
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
}

.hero-buehne .fenster-3d {
  border-radius: var(--radius) 0 0 var(--radius);
}

.sim-feld {
  position: relative;
  z-index: var(--z-ueber-3d);
  background: var(--tief);
  color: #fff;
  --fokus: var(--akzent);
}

/* Die Simulation ist 600 × 500 groß, skaliert und ragt links etwas über den Raum. */
.sim {
  position: absolute;
  top: clamp(24px, 3.5vh, 40px);
  right: clamp(20px, 2.6vw, 44px);
  width: calc(var(--b, 600) * var(--skala, 1) * 1px);
  height: calc(var(--h, 500) * var(--skala, 1) * 1px);
}

.nochmal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: var(--radius-klein);
  background: color-mix(in oklch, white 12%, var(--tief));
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s var(--kurve-weich);
}

.nochmal:active {
  transform: scale(0.97);
}

.nochmal svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--kurve);
}

@media (hover: hover) and (pointer: fine) {
  .nochmal:hover {
    background: color-mix(in oklch, white 20%, var(--tief));
  }

  .nochmal:hover svg {
    transform: rotate(-50deg);
  }

  .nochmal-hell:hover {
    background: color-mix(in oklch, white 24%, var(--haupt));
  }
}

.sim-feld .nochmal {
  position: absolute;
  left: clamp(20px, 2.6vw, 44px);
  bottom: clamp(20px, 3vh, 32px);
  z-index: 2;
}

/* ---------- Ablauf ---------- */

.ablauf {
  padding: var(--a-10) 0;
}

.ablauf h2 {
  max-width: 16ch;
}

.schritte {
  --regal: 190px;
  --nr: 40px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 var(--a-5);
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  view-timeline-name: --schritte;
}

/* Linie durch alle Nummern */
.schritte::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--regal) + var(--a-6) + var(--nr) / 2);
  height: 2px;
  background: var(--tinte);
  transform-origin: left center;
}

.schritt {
  position: relative;
  display: grid;
  grid-template-rows: var(--regal) auto auto 1fr;
  row-gap: 0;
  align-content: start;
}

.schritt h3 {
  margin-top: var(--a-5);
}

.schritt p {
  margin-top: var(--a-2);
  color: color-mix(in oklch, var(--tinte) 84%, white);
}

.schritt-nr {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--nr);
  height: var(--nr);
  margin-top: var(--a-6);
  border-radius: 50%;
  background: var(--grund);
  box-shadow: inset 0 0 0 2px var(--tinte);
  font-size: 0.9375rem;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

/* Die Freigabe: Spalte im Textmarker-Gelb, ragt über die anderen hinaus. */
.schritt.ist-freigabe::before {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--a-5)) calc(-1 * var(--a-4));
  z-index: -1;
  border-radius: var(--radius);
  background: var(--akzent);
}

.schritt.ist-freigabe {
  z-index: 0;
}

.schritt.ist-freigabe .schritt-nr {
  background: var(--tinte);
  color: var(--akzent);
  box-shadow: none;
}

.schritt.ist-freigabe p {
  color: var(--tinte);
}

/* Belege: kleine Ausschnitte aus Handy und Mailprogramm, stehen unten auf dem „Regal“. */
.beleg {
  align-self: end;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: var(--grund);
  box-shadow: 0 0 0 1px var(--linie), 0 6px 8px -6px rgb(20 26 41 / 0.2);
  font-size: 13px;
  line-height: 1.4;
  color: var(--tinte);
}

.beleg-kopf {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  color: var(--neben);
}

.beleg-kopf small {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
}

.app-punkt {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 4px;
  background: var(--haupt);
}

.beleg-chat {
  background: var(--flaeche);
  box-shadow: none;
}

.chat-eigen {
  justify-self: end;
  max-width: 92%;
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--haupt);
  color: #fff;
  font-size: 13.5px;
  font-weight: 520;
}

.beleg-mail {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.mini-leiste {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}

.mini-leiste i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--linie-stark);
  opacity: 0.6;
}

.mini-leiste b {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 620;
}

.mini-zeile {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--linie);
}

.mini-zeile small {
  width: 44px;
  flex: none;
  font-size: 12px;
  color: var(--neben);
}

.mini-zeile strong {
  font-weight: 620;
}

.mini-kontakt {
  padding: 1px 8px;
  border-radius: 5px;
  background: var(--haupt-zart);
  font-weight: 560;
}

.mini-anhang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 12px 12px;
  justify-self: start;
  padding: 5px 9px 5px 7px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--linie);
  font-size: 12px;
  font-weight: 560;
}

.mini-anhang svg,
.gh-vorschau svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: #b0523a;
}

.beleg-hinweis {
  border-radius: 16px;
}

.beleg-hinweis strong {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 680;
}

.beleg-hinweis > span:last-child {
  color: var(--neben);
}

.beleg-freigabe {
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 6px 8px -6px rgb(20 26 41 / 0.28);
}

.mini-knopf {
  position: relative;
  display: grid;
  place-items: center;
  height: 46px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--haupt);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}

.mini-zweit {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--neben);
}

/* Tipp auf den Knopf, alle paar Sekunden ein kurzer Ring. */
.tipp {
  position: absolute;
  left: 64%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.55);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .tipp {
    animation: tippen 3.2s 1s var(--kurve-weich) infinite;
  }
}

@keyframes tippen {
  0%,
  62% {
    opacity: 0;
    transform: scale(0.3);
  }

  66% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(3.4);
  }
}

.beleg-versand {
  justify-items: center;
  padding: 18px 14px 16px;
  text-align: center;
}

.beleg-versand strong {
  font-size: 15px;
  font-weight: 680;
}

.beleg-versand span:last-child {
  color: var(--neben);
}

.haken-kreis {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--haupt-zart);
  color: var(--haupt);
}

.haken-kreis svg {
  width: 24px;
  height: 24px;
}

/* Aufbau beim Hereinscrollen: Linie zieht durch, Belege steigen nacheinander auf. Ohne Unterstützung steht alles da. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .schritte::before {
      animation: linie-ziehen linear both;
      animation-timeline: --schritte;
      animation-range: entry 55% cover 52%;
    }

    .schritt .beleg {
      animation: aufsteigen linear both;
      animation-timeline: --schritte;
      animation-range: entry calc(35% + var(--i) * 9%) entry calc(80% + var(--i) * 9%);
    }
  }
}

@keyframes linie-ziehen {
  from {
    transform: scaleX(0);
  }
}

@keyframes aufsteigen {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
}

/* Belege der übrigen Abläufe (Kreativraum, Meeting, Zentrale): aus denselben Bausteinen wie beim Sekretariat. */
.beleg-kopf svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.beleg-kopf .figur-punkt {
  width: 10px;
  height: 10px;
  box-shadow: none;
}

.chat-fremd {
  justify-self: start;
  max-width: 94%;
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--grund);
  box-shadow: 0 0 0 1px var(--linie);
  font-size: 13.5px;
  font-weight: 520;
}

.mini-clips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 12px;
}

.mini-clips span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}

.mini-clips i {
  width: 20px;
  height: 13px;
  flex: none;
  border-radius: 3px;
}

.mini-spur {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}

.mini-spur i {
  flex: 1;
  height: 26px;
  border-radius: 4px;
}

.mini-schnitt {
  display: grid;
  place-items: center;
  width: 20px;
  flex: none;
  color: var(--haupt);
}

.mini-schnitt svg {
  width: 17px;
  height: 17px;
}

.mini-titelspur,
.mini-musik {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-titelspur small,
.mini-musik small {
  width: 40px;
  flex: none;
  font-size: 12px;
  color: var(--neben);
}

.mini-titelspur span {
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--haupt-zart);
  font-size: 12.5px;
  font-weight: 620;
  color: var(--haupt-druck);
}

.mini-musik i {
  flex: 1;
  height: 20px;
  border-radius: 4px;
  background:
    radial-gradient(60% 120% at 30% 50%, transparent 40%, var(--grund) 100%),
    repeating-linear-gradient(90deg, var(--haupt-hell) 0 2px, transparent 2px 5px);
}

.mini-balken {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--haupt-zart);
}

.mini-balken i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--haupt);
}

.mini-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 620;
  color: var(--haupt);
}

.mini-status svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.live-punkt-mini {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: #e5484d;
}

.mini-zeilen {
  display: grid;
  gap: 8px;
  padding: 14px 12px 16px;
}

.mini-zeilen i {
  height: 7px;
  border-radius: 4px;
  background: var(--linie);
}

.mini-zeilen i.kurz {
  width: 62%;
  background: var(--haupt-hell);
}

.mini-frage {
  font-size: 13.5px;
  font-weight: 640;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.mini-knoepfe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mini-knopf-rand {
  background: transparent;
  color: var(--tinte);
  box-shadow: inset 0 0 0 1.5px var(--linie-stark);
}

.mini-liste {
  display: grid;
  gap: 6px;
}

.mini-liste span {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.35;
}

.mini-liste span::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--haupt);
}

.mini-aufgabe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--linie);
  font-size: 12.5px;
  line-height: 1.35;
}

.mini-aufgabe:first-child {
  padding-top: 0;
}

.mini-aufgabe:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mini-aufgabe b {
  font-weight: 650;
}

.mini-aufgabe span {
  color: var(--neben);
}

.mini-aufgabe small {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--flaeche);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--neben);
}

.mini-termin {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-tag {
  display: grid;
  place-items: center;
  width: 52px;
  padding: 5px 0 7px;
  border-radius: 8px;
  background: var(--haupt);
  color: #fff;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.mini-tag small {
  font-size: 11px;
  font-weight: 600;
}

.mini-termin strong {
  font-size: 15px;
  font-weight: 650;
}

.mini-dokument {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-dokument svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: #b0523a;
}

.mini-dokument strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

/* ---------- Freigabe ---------- */

.freigabe-abschnitt {
  position: relative;
  overflow: hidden;
  padding: var(--a-10) 0;
  background: var(--haupt);
  color: #fff;
  --fokus: var(--akzent);
}

.freigabe-innen {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--a-5);
  align-items: center;
}

.freigabe-spalte {
  grid-column: 1 / span 6;
  display: grid;
  gap: var(--a-6);
  justify-items: start;
}

.freigabe-abschnitt h2 {
  font-size: clamp(2.625rem, 1.5rem + 3.6vw, 5rem);
  line-height: 1.02;
}

.freigabe-spalte p {
  max-width: 36ch;
  font-size: var(--s-lead);
  line-height: 1.5;
  color: color-mix(in oklch, white 88%, var(--haupt));
}

.nochmal-hell {
  background: color-mix(in oklch, white 14%, var(--haupt));
}



.grosshandy {
  position: relative;
  grid-column: 8 / span 5;
  justify-self: center;
}

/* Heller Hof hinter dem Handy */
.grosshandy::before {
  content: '';
  position: absolute;
  inset: -18% -40%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklch, white 26%, var(--haupt)), transparent);
}

.gh-geraet {
  position: relative;
  width: 330px;
  height: 640px;
  padding: 12px;
  border-radius: 52px;
  background: linear-gradient(145deg, #3a3f4a, #12151c 62%);
  box-shadow: inset 0 0 0 1.5px #5a606d, 0 40px 80px -30px rgb(5 10 30 / 0.65);
  transform: rotate(-4deg);
}

.gh-bildschirm {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 41px;
  background: var(--flaeche);
  padding: 16px 18px;
  color: var(--tinte);
}

.gh-oben {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 650;
}

.gh-insel {
  width: 86px;
  height: 24px;
  border-radius: 14px;
  background: #0e1016;
}

.gh-akku {
  width: 25px;
  height: 12px;
  padding: 2px;
  border: 1.5px solid var(--tinte);
  border-radius: 4px;
}

.gh-akku i {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: 1px;
  background: var(--tinte);
}

.gh-app {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px 4px 18px;
  font-size: 16px;
  font-weight: 700;
}

.gh-app .app-punkt {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.gh-karte {
  padding: 20px 18px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 8px -8px rgb(20 26 41 / 0.25);
}

.gh-titel {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.gh-text {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--neben);
}

.gh-vorschau {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 13px;
  background: var(--flaeche);
  font-size: 14px;
  line-height: 1.42;
}

.gh-vorschau strong {
  font-size: 15px;
  font-weight: 650;
}

.gh-vorschau span {
  color: var(--neben);
}

.gh-vorschau small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--neben);
}

.gh-knopf {
  position: relative;
  display: grid;
  place-items: center;
  height: 56px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--haupt);
  color: #fff;
  font-size: 17px;
  font-weight: 650;
}

.gh-knopf-text,
.gh-knopf-ok {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.gh-knopf-ok {
  visibility: hidden;
}

.gh-knopf-ok svg {
  width: 21px;
  height: 21px;
}

.gh-welle {
  position: absolute;
  left: 60%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: #fff;
  visibility: hidden;
}

.gh-zweit {
  display: block;
  margin-top: 13px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--neben);
}

.gh-versendet {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 46%;
  translate: 0 -50%;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 34px 20px 30px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  visibility: hidden;
}

.gh-versendet .haken-kreis {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
}

.gh-versendet .haken-kreis svg {
  width: 34px;
  height: 34px;
}

.gh-versendet strong {
  font-size: 20px;
  font-weight: 680;
}

.gh-versendet span:last-child {
  color: var(--neben);
}

/* Fingerspitze als Tipp-Punkt */
.gh-finger {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(20 26 41 / 0.3);
  box-shadow: 0 0 0 2.5px rgb(255 255 255 / 0.92);
  visibility: hidden;
}

/* Vorschau des Rohschnitts im Handy (Kreativraum) */
.gh-video {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 96px;
  margin-bottom: 4px;
  overflow: hidden;
  border-radius: 9px;
}

.gh-video span {
  display: flex;
  align-items: flex-end;
  padding: 7px 9px;
  font-size: 12.5px;
  font-weight: 650;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.gh-video span:first-child {
  background: linear-gradient(160deg, #a8987f, #6b5848);
}

.gh-video span:last-child {
  background: linear-gradient(160deg, #e8ecef, #8d9cab);
}

/* ---------- Personal ---------- */

.team {
  padding: var(--a-10) 0;
}

.team-kopf {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--a-5);
  row-gap: var(--a-4);
  align-items: end;
}

.team-kopf h2 {
  grid-column: 1 / span 7;
}

.team-kopf p {
  grid-column: 9 / -1;
  max-width: 34ch;
  color: var(--neben);
}

.team-raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--a-5);
  align-items: start;
  margin-top: clamp(40px, 5vw, 72px);
}

.team-bild {
  position: sticky;
  top: 96px;
  grid-column: 1 / span 7;
  margin: 0;
}

.team-bild .fenster-3d {
  height: clamp(420px, 62vh, 600px);
  border-radius: var(--radius);
}

.team-bild figcaption {
  margin-top: var(--a-3);
  font-size: var(--s-klein);
  color: var(--neben);
}

.team-liste {
  grid-column: 9 / -1;
}

.team-liste > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linie);
}

/* Zentrale: Personal in mehreren Räumen, je Raum eine Gruppe. */
.team-gruppe {
  margin: var(--a-6) 0 var(--a-3);
  font-size: var(--s-klein);
  font-weight: 650;
  letter-spacing: 0;
  color: var(--neben);
}

.team-gruppe:first-child {
  margin-top: 0;
}

.mitglied {
  position: relative;
  padding: var(--a-5) 0 var(--a-5);
  border-bottom: 1px solid var(--linie);
}

/* Aktive Zeile: zarte Fläche über die ganze Zeile, ohne Randstreifen. */
.mitglied::before {
  content: '';
  position: absolute;
  inset: -1px calc(-1 * var(--a-4));
  z-index: -1;
  border-radius: 10px;
  background: var(--haupt-zart);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mitglied.ist-aktiv::before {
  opacity: 1;
}

.team-liste {
  position: relative;
  z-index: 0;
}

.mitglied h3,
.mitglied h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: var(--s-h3);
  font-weight: 640;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.mitglied {
  cursor: default;
  outline-offset: 2px;
}

.mitglied:focus-visible {
  border-radius: 10px;
}

.gast {
  margin-top: var(--a-1);
  padding-left: 24px;
  font-size: var(--s-klein);
  color: var(--neben);
}

.figur-punkt {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--figur-farbe, var(--haupt));
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--figur-farbe, var(--haupt)) 22%, white);
}

.rolle {
  margin-top: var(--a-2);
  padding-left: 24px;
}

.aufgaben {
  display: grid;
  gap: 4px;
  margin: var(--a-3) 0 0;
  padding: 0 0 0 24px;
  list-style: none;
  font-size: var(--s-klein);
  line-height: 1.45;
  color: var(--neben);
}

.aufgaben li {
  display: flex;
  gap: 10px;
}

.aufgaben li::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: none;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--haupt);
}


/* ---------- Weitere Abläufe ---------- */

.weitere {
  padding: var(--a-10) 0;
}

.weitere-liste {
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linie);
}

.weitere-liste a {
  display: grid;
  grid-template-columns: clamp(140px, 18vw, 240px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: var(--a-5) 0;
  border-bottom: 1px solid var(--linie);
  text-decoration: none;
}

.weitere-bild {
  overflow: hidden;
  border-radius: 10px;
  background: var(--flaeche);
  aspect-ratio: 16 / 10;
}

.weitere-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--kurve);
}

.weitere-text {
  display: grid;
  gap: var(--a-2);
}

.weitere-text strong {
  font-size: clamp(1.5rem, 1.05rem + 1.4vw, 2.375rem);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.028em;
  transition: color 0.2s ease;
}

.weitere-text span {
  max-width: 58ch;
  color: var(--neben);
}

.weitere-pfeil {
  width: 30px;
  height: 30px;
  margin-right: var(--a-2);
  color: var(--haupt);
  transition: transform 0.25s var(--kurve);
}

@media (hover: hover) and (pointer: fine) {
  .weitere-liste a:hover strong {
    color: var(--haupt);
  }

  .weitere-liste a:hover img {
    transform: scale(1.05);
  }

  .weitere-liste a:hover .weitere-pfeil {
    transform: translateX(6px);
  }
}


/* ---------- Figuren im 3D-Büro: Sprechblasen und Namen ---------- */

.figur {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.blase {
  position: relative;
  display: none;
  max-width: 230px;
  margin: 0 0 4px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--haupt), 0 8px 8px -6px rgb(20 26 41 / 0.35);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  color: var(--tinte);
  translate: var(--versatz, 0px) 0;
}

.blase::after {
  content: '';
  position: absolute;
  left: clamp(14px, calc(50% - var(--versatz, 0px)), calc(100% - 14px));
  bottom: -6px;
  width: 11px;
  height: 11px;
  background: #fff;
  box-shadow: 2px 2px 0 0 var(--haupt);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 0 0 2px 0;
}

.figur.mit-blase .blase {
  display: block;
  transform-origin: 50% 100%;
  animation: blase-auf 0.3s var(--kurve);
}

.figur.ist-kurz .blase {
  max-width: none;
  white-space: nowrap;
}

@keyframes blase-auf {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
}

.namensschild {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 8px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 4px 8px -4px rgb(20 26 41 / 0.4);
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  color: var(--tinte);
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--kurve);
}

.namenspunkt {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--figur-farbe);
}

.figur.mit-name .namensschild {
  display: inline-flex;
}

.figur.ist-aktiv .namensschild {
  background: var(--haupt);
  color: #fff;
  transform: scale(1.08);
}

.figur.ist-aktiv .namenspunkt {
  box-shadow: 0 0 0 2px #fff;
}


/* ---------- Schmale Bildschirme (Prüfung im Simulator durch Sirus) ---------- */

@media (max-width: 1100px) {
  .schritte {
    --regal: 210px;
    gap: 0 var(--a-4);
  }

  .beleg {
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  .hero h1,
  .hero-neben,
  .team-kopf h2,
  .team-kopf p,
  .freigabe-spalte,
  .grosshandy,
  .anfrage-text,
  .formular {
    grid-column: 1 / -1;
  }

  .hero-buehne .fenster-3d {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .hero-buehne,
  [data-ablauf='meeting'] .hero-buehne {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 52vw) auto;
    height: auto;
  }

  .sim-feld {
    height: calc(var(--h, 500) * var(--skala, 0.6) * 1px + 120px);
  }

  .sim {
    left: 50%;
    right: auto;
    translate: -50% 0;
  }

  .sim-feld .nochmal {
    left: 50%;
    translate: -50% 0;
  }

  /* Ablauf als senkrechte Zeitleiste */
  .schritte {
    grid-template-columns: 1fr;
    row-gap: var(--a-7);
    padding-left: calc(var(--nr) + var(--a-5));
  }

  .schritte::before {
    left: calc(var(--nr) / 2 - 1px);
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    transform-origin: center top;
  }

  .schritt {
    grid-template-rows: auto;
  }

  .schritt-nr {
    position: absolute;
    left: calc(-1 * (var(--nr) + var(--a-5)));
    top: 0;
    margin-top: 0;
  }

  .schritt h3 {
    order: -1;
    margin-top: 6px;
  }

  .schritt p {
    order: 0;
  }

  .schritt .beleg {
    order: 1;
    max-width: 320px;
    margin-top: var(--a-4);
  }

  .grosshandy {
    margin-top: var(--a-8);
  }

  .team-bild {
    position: relative;
    top: 0;
    grid-column: 1 / -1;
  }

  .formular {
    position: relative;
    top: 0;
  }

  .team-bild .fenster-3d {
    height: clamp(280px, 70vw, 460px);
  }

  .team-liste {
    grid-column: 1 / -1;
    margin-top: var(--a-6);
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes linie-ziehen {
      from {
        transform: scaleY(0);
      }
    }
  }
}

@media (max-width: 560px) {
  .formular {
    grid-template-columns: 1fr;
    --pad: var(--a-5);
  }

  .gh-geraet {
    width: 290px;
    height: 590px;
  }

  .weitere-liste a {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .weitere-pfeil {
    display: none;
  }
}

/* Ohne Bewegung gibt es nichts abzuspielen. */
@media (prefers-reduced-motion: reduce) {
  .nochmal {
    display: none;
  }
}
