@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════════════
   Section 2 — „Der Assistent an vier Arbeitsplätzen"

   Four role tabs over one fixed stage. Unlike the hero, the panels lay
   themselves out in normal flow inside the stage (flex/grid + padding);
   only the cursor is absolutely placed. That is deliberate: four different
   compositions in hand-placed coordinates would be unmaintainable.

   ONE unit again: every size is calc(N * var(--u)), where --u scales with
   the stage on desktop and becomes a real pixel in compact. Changing scale
   is two lines, nowhere else.

   Easing: the same four curves measured out of personio.ch that the hero
   uses — declared again here so this file stands alone and does not depend
   on hero-demo.css being present or loading first.
   ═══════════════════════════════════════════════════════════════════════ */

.h2-at {
  --d-enter:  cubic-bezier(.33, 0, .20, 1);
  --d-exit:   cubic-bezier(.33, 0, .83, .83);
  --d-travel: cubic-bezier(.17, .17, .83, .83);
  --d-zoom:   cubic-bezier(.33, 0, .67, 1);

  --d-card:  #FFFFFF;
  --d-ink:   var(--black, #1D1D1F);
  --d-mute:  var(--gray-600, #6E6E73);
  --d-line:  var(--gray-100, #E8E8ED);
  --d-green: var(--accent, #1B4332);
  --d-warn:  var(--guard-amber, #B45309);

  position: relative;
  padding: calc(90 / 16 * 1rem) 32px;
  max-width: 1164px;
  margin: 0 auto;
  text-align: left;
}

/* ── heading ── */
.h2-at-head { max-width: 760px; margin: 0 auto calc(34 / 16 * 1rem); text-align: center; }
.h2-at-eyebrow {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--d-mute); margin-bottom: 14px;
}
.h2-at-title {
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px;
}
.h2-at-sub { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--d-mute); margin: 0; }

/* ── the tab strip ──
   ⚠ nowrap + overflow-x here and flex:0 0 auto on the items. Without both,
   four full-width labels wrap into the panel below on a phone — the exact
   failure the app's .asset-tabs / .pm-view-tabs hit. */
.h2-at-strip {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 8px;
  margin: 0 auto 20px;
  padding-bottom: 2px;
  justify-content: center;
}
.h2-at-strip::-webkit-scrollbar { display: none; }

.h2-at-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: inherit;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--d-mute);
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: color .2s var(--d-enter), background .2s var(--d-enter),
              border-color .2s var(--d-enter), box-shadow .2s var(--d-enter);
}
.h2-at-tab:hover { color: var(--d-ink); border-color: var(--gray-200, #D2D2D7); }
.h2-at-tab:focus-visible { outline: 2px solid var(--d-green); outline-offset: 2px; }
.h2-at-tab.is-active {
  color: #fff; background: var(--d-ink); border-color: var(--d-ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.12);
}

/* ── the stage ── */
.h2-at-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  /* 5:2 — sized to the tallest panel plus slack. The columns stretch, so the
     empty-looking space below content is column, not padding: measure the
     painted content, not the boxes. */
  aspect-ratio: 5 / 2;
  container-type: inline-size;
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 24px 70px rgba(0,0,0,.09);
  overflow: hidden;
  color: var(--d-ink);

  /* the one unit; see the header note */
  --u: calc(100cqw / 1100);
}

.h2-at-panel {
  position: absolute; inset: 0;
  padding: calc(30 * var(--u));
  display: flex; flex-direction: column;
  gap: calc(16 * var(--u));
}
.h2-at-panel[hidden] { display: none; }

/* ── ONE reveal rule for every scripted element ── */
.h2-at-panel [data-s] {
  opacity: 0;
  transform: translateY(calc(10 * var(--u)));
  transition: opacity .34s var(--d-enter), transform .34s var(--d-enter);
}
.h2-at-panel [data-s].is-on { opacity: 1; transform: none; }

/* ── shared primitives ── */
.h2-at-cols { display: flex; gap: calc(22 * var(--u)); flex: 1; min-height: 0; }
.h2-at-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.h2-at-col-wide { flex: 1.45 1 0; }

.h2-at-card {
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: calc(14 * var(--u));
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  padding: calc(18 * var(--u)) calc(20 * var(--u));
}
.h2-at-card-head {
  font-size: calc(11.5 * var(--u)); font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--d-mute);
  margin-bottom: calc(12 * var(--u));
}
.h2-at-sect {
  font-size: calc(11.5 * var(--u)); font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--d-mute);
}
.h2-at-sect-in { margin-top: calc(14 * var(--u)); }

.h2-at-pill {
  font-size: calc(10.5 * var(--u)); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: calc(5 * var(--u)) calc(10 * var(--u));
  border-radius: 999px; white-space: nowrap;
}
.h2-at-pill-warn { background: var(--guard-amber-bg, rgba(180,83,9,.08)); color: var(--d-warn); }
.h2-at-pill-ok   { background: var(--accent-light, rgba(27,67,50,.10)); color: var(--d-green); }

.h2-at-chips { display: flex; flex-wrap: wrap; gap: calc(8 * var(--u)); margin-top: calc(12 * var(--u)); }
.h2-at-chip {
  font-size: calc(12 * var(--u)); font-weight: 600;
  padding: calc(6 * var(--u)) calc(11 * var(--u));
  border: 1px solid var(--d-line); border-radius: 999px; background: var(--d-card);
}
.h2-at-chip-act { border-color: var(--accent-medium, rgba(27,67,50,.2)); color: var(--d-green); cursor: default; }
/* the chip is what gets clicked in the GF panel, so it needs the press and the
   settled state. Specificity: .is-on sets transform:none, so the pressed rule
   must carry both classes to win. */
.h2-at-chip-act.is-on.is-pressed { transform: scale(.96); }
.h2-at-chip-act.is-done { background: var(--accent-light, rgba(27,67,50,.10)); border-color: var(--d-green); }

/* the approve button — one sweep fill, same grammar as the hero.
   ⚠ the label must be an element: a bare text node cannot sit above ::after */
.h2-at-approve { display: flex; align-items: center; gap: calc(12 * var(--u)); margin-top: calc(14 * var(--u)); }
.h2-at-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: calc(7 * var(--u));
  font-size: calc(13 * var(--u)); font-weight: 650;
  color: #fff; background: var(--d-ink);
  padding: calc(10 * var(--u)) calc(17 * var(--u));
  border-radius: 999px;
  transition: transform .18s var(--d-enter);
}
.h2-at-btn::after {
  content: ""; position: absolute; inset: 0; background: var(--d-green);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--d-enter);
}
.h2-at-btn svg, .h2-at-btn-l { position: relative; z-index: 1; }
.h2-at-approve.is-pressed .h2-at-btn { transform: scale(.96); }
.h2-at-approve.is-done .h2-at-btn::after { transform: scaleX(1); }
.h2-at-meta { font-size: calc(12 * var(--u)); color: var(--d-mute); font-style: italic; }

.h2-at-sent {
  margin-top: calc(10 * var(--u));
  font-size: calc(12.5 * var(--u)); font-weight: 600; color: var(--d-green);
  opacity: 0; transform: translateY(calc(6 * var(--u)));
  transition: opacity .32s var(--d-enter), transform .32s var(--d-enter);
}
.h2-at-sent.is-on { opacity: 1; transform: none; }

/* ── the cursor (no persona chip here: the active tab already says who) ── */
.h2-at-cursor {
  position: absolute; left: 0; top: 0; z-index: 6;
  color: var(--d-ink); opacity: 0;
  transform: translate(calc(880 * var(--u)), calc(395 * var(--u)));
  transition: transform .72s var(--d-travel), opacity .35s var(--d-enter);
  pointer-events: none;
}
.h2-at-cursor svg { width: calc(19 * var(--u)); height: auto; display: block; }
.h2-at-cursor.is-on { opacity: 1; }
/* needs to outrank .is-on, hence both classes plus the attribute */
.h2-at-cursor.is-on[data-at="away"] { opacity: 0; }
/* per-panel targets, tuned to each composition */
[data-panel="pl"] .h2-at-cursor[data-at="btn"] { transform: translate(calc(560 * var(--u)), calc(300 * var(--u))); }
[data-panel="as"] .h2-at-cursor[data-at="btn"] { transform: translate(calc(830 * var(--u)), calc(318 * var(--u))); }
[data-panel="gf"] .h2-at-cursor[data-at="btn"] { transform: translate(calc(560 * var(--u)), calc(300 * var(--u))); }
[data-panel="ko"] .h2-at-cursor[data-at="btn"] { transform: translate(calc(205 * var(--u)), calc(332 * var(--u))); }

/* ═══ 1 · Projektleitung ═══ */
.h2-at-bar {
  display: flex; align-items: center; gap: calc(12 * var(--u));
  padding: calc(13 * var(--u)) calc(18 * var(--u));
  background: var(--off-white, #F5F5F7);
  border: 1px solid var(--d-line);
  border-radius: calc(12 * var(--u));
}
.h2-at-bar-t { font-size: calc(16 * var(--u)); font-weight: 750; letter-spacing: -0.015em; }
.h2-at-bar-s { font-size: calc(13 * var(--u)); color: var(--d-mute); }
.h2-at-bar-d { font-size: calc(13 * var(--u)); color: var(--d-mute); margin-left: auto; }
.h2-at-bar-d.is-gone { opacity: .35; text-decoration: line-through; }
.h2-at-pill-ok[data-role="newdue"] { opacity: 0; transition: opacity .3s var(--d-enter); }
.h2-at-pill-ok[data-role="newdue"].is-on { opacity: 1; }
/* ⚠ the blanket `.h2-at-panel [data-s].is-on { opacity: 1 }` outranks a plain
   two-class rule, so the cleared state has to be written at panel scope too.
   Anything that hides a [data-s] element again needs this treatment. */
.h2-at-panel [data-s].h2-at-pill-warn.is-cleared { opacity: 0; transition: opacity .3s var(--d-exit); }

.h2-at-task {
  display: grid;
  grid-template-columns: calc(18 * var(--u)) 1fr;
  gap: 0 calc(2 * var(--u));
  padding: calc(10 * var(--u)) calc(14 * var(--u));
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: calc(11 * var(--u));
}
.h2-at-dot {
  grid-row: 1 / 3; align-self: center;
  width: calc(9 * var(--u)); height: calc(9 * var(--u));
  border-radius: 50%; background: var(--gray-400, #98989D);
}
.h2-at-task-t { font-size: calc(13.5 * var(--u)); font-weight: 650; letter-spacing: -0.01em; }
.h2-at-task-s { font-size: calc(12 * var(--u)); color: var(--d-mute); }
.h2-at-task.is-blocked { border-color: rgba(180,83,9,.35); background: var(--guard-amber-bg, rgba(180,83,9,.05)); }
.h2-at-task.is-blocked .h2-at-dot { background: var(--d-warn); }
.h2-at-task.is-waiting { opacity: .62; }
.h2-at-note {
  margin: 0 0 calc(7 * var(--u));
  font-size: calc(13 * var(--u)); line-height: 1.5; color: var(--d-ink);
}

/* ═══ 2 · Assistenz ═══ */
.h2-at-audio {
  display: flex; align-items: center; gap: calc(12 * var(--u));
  padding: calc(13 * var(--u)) calc(16 * var(--u));
  background: var(--off-white, #F5F5F7);
  border: 1px solid var(--d-line);
  border-radius: calc(12 * var(--u));
}
.h2-at-audio-t { font-size: calc(13.5 * var(--u)); font-weight: 650; }
.h2-at-audio-d { font-size: calc(12 * var(--u)); color: var(--d-mute); font-variant-numeric: tabular-nums; }
.h2-at-wave { display: inline-flex; align-items: center; gap: calc(2.5 * var(--u)); height: calc(22 * var(--u)); margin-left: auto; }
.h2-at-wave i {
  width: calc(2.5 * var(--u)); border-radius: 999px; background: var(--accent-medium, rgba(27,67,50,.3));
  height: 40%; animation: h2AtWave 1.1s infinite var(--d-travel);
}
.h2-at-wave i:nth-child(3n)   { animation-delay: .12s; }
.h2-at-wave i:nth-child(3n+1) { animation-delay: .26s; }
.h2-at-wave i:nth-child(4n)   { animation-delay: .38s; }
@keyframes h2AtWave { 0%,100% { height: 28%; } 50% { height: 100%; } }
.h2-at-audio-s { font-size: calc(12 * var(--u)); color: var(--d-mute); }
/* once the Protokoll exists, the transcription is over — the wave and its
   label would otherwise keep pulsing under a finished document */
.h2-at-audio.is-done .h2-at-wave,
.h2-at-audio.is-done .h2-at-audio-s { display: none; }

.h2-at-prow {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: calc(8 * var(--u)) 0;
  border-bottom: 1px solid var(--d-line);
  font-size: calc(13 * var(--u));
}
.h2-at-prow-t { font-weight: 600; }
.h2-at-prow-s { font-size: calc(12 * var(--u)); color: var(--d-mute); }
.h2-at-prow.is-key .h2-at-prow-t { color: var(--d-green); font-weight: 750; }
.h2-at-beschluss {
  padding: calc(5 * var(--u)) 0 calc(5 * var(--u)) calc(12 * var(--u));
  font-size: calc(12.5 * var(--u)); color: var(--d-ink);
}
.h2-at-cal {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: calc(11 * var(--u)) calc(14 * var(--u));
  border: 1px solid var(--d-line); border-radius: calc(11 * var(--u));
  background: var(--accent-lighter, rgba(27,67,50,.05));
}
.h2-at-cal-t { font-size: calc(12 * var(--u)); color: var(--d-mute); }
.h2-at-cal-v { font-size: calc(13 * var(--u)); font-weight: 650; }

/* ═══ 3 · Geschäftsführung ═══ */
.h2-at-centre { width: 100%; max-width: calc(660 * var(--u)); margin: 0 auto; }
.h2-at-ask {
  display: flex; align-items: center; gap: calc(10 * var(--u));
  padding: calc(13 * var(--u)) calc(18 * var(--u));
  background: var(--d-card);
  border: 1px solid var(--gray-200, #D2D2D7);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 22px rgba(0,0,0,.06);
}
.h2-at-ask-ico { color: var(--d-mute); display: inline-flex; }
.h2-at-ask-txt { font-size: calc(14.5 * var(--u)); font-weight: 500; }
.h2-at-caret {
  width: calc(1.6 * var(--u)); height: calc(17 * var(--u));
  background: var(--d-green); margin-left: calc(-6 * var(--u));
  animation: h2AtCaret 1s steps(1) infinite;
}
@keyframes h2AtCaret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
.h2-at-ask.is-sent .h2-at-caret { display: none; }

.h2-at-load { display: flex; gap: calc(5 * var(--u)); justify-content: center; margin: calc(14 * var(--u)) 0; }
.h2-at-load i {
  width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%;
  background: var(--gray-400, #98989D); animation: h2AtDot 1.1s infinite var(--d-travel);
}
.h2-at-load i:nth-child(2) { animation-delay: .18s; }
.h2-at-load i:nth-child(3) { animation-delay: .36s; }
@keyframes h2AtDot { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.h2-at-load.is-done { display: none; }

.h2-at-answer { margin-top: calc(14 * var(--u)); }
.h2-at-kpi { display: flex; justify-content: space-between; align-items: baseline; }
.h2-at-kpi-l { font-size: calc(14 * var(--u)); color: var(--d-mute); }
.h2-at-kpi-v { font-size: calc(26 * var(--u)); font-weight: 780; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.h2-at-orow {
  display: flex; align-items: baseline; gap: calc(10 * var(--u));
  padding: calc(8 * var(--u)) 0; border-bottom: 1px solid var(--d-line);
  font-size: calc(13 * var(--u));
}
.h2-at-orow-t { flex: 1; font-weight: 600; }
.h2-at-orow-v { font-variant-numeric: tabular-nums; }
.h2-at-orow-a { color: var(--d-warn); font-size: calc(12 * var(--u)); font-weight: 650; min-width: calc(58 * var(--u)); text-align: right; }
.h2-at-source {
  margin-top: calc(12 * var(--u));
  font-size: calc(11.5 * var(--u)); color: var(--d-mute);
  padding-left: calc(10 * var(--u));
  border-left: calc(2 * var(--u)) solid var(--d-line);
}

/* ═══ 4 · Kommunikation ═══ */
.h2-at-notes {
  padding: calc(14 * var(--u)) calc(16 * var(--u));
  background: var(--off-white, #F5F5F7);
  border: 1px solid var(--d-line); border-radius: calc(12 * var(--u));
}
.h2-at-nline { font-size: calc(12.5 * var(--u)); color: var(--d-mute); padding-top: calc(5 * var(--u)); }
.h2-at-hero-img {
  height: calc(104 * var(--u));
  border-radius: calc(10 * var(--u));
  margin-bottom: calc(12 * var(--u));
  background:
    radial-gradient(circle at 24% 28%, rgba(45,106,79,.42), transparent 58%),
    radial-gradient(circle at 76% 72%, rgba(27,67,50,.30), transparent 60%),
    linear-gradient(118deg, #F3F1EA, #E4EAE2);
  filter: blur(calc(5 * var(--u)));
  transition: filter .7s var(--d-zoom), opacity .34s var(--d-enter), transform .34s var(--d-enter);
}
.h2-at-hero-img.is-on { filter: blur(0); }
.h2-at-art-title { font-size: calc(18 * var(--u)); font-weight: 750; letter-spacing: -0.02em; margin-bottom: calc(8 * var(--u)); }
.h2-at-art-p { margin: 0 0 calc(8 * var(--u)); font-size: calc(12.5 * var(--u)); line-height: 1.55; color: var(--d-mute); }
.h2-at-langs { display: flex; align-items: center; flex-wrap: wrap; gap: calc(8 * var(--u)); }
.h2-at-lang {
  display: inline-flex; align-items: center; gap: calc(5 * var(--u));
  font-size: calc(12 * var(--u)); font-weight: 700; letter-spacing: .04em;
  padding: calc(5 * var(--u)) calc(10 * var(--u));
  border: 1px solid var(--accent-medium, rgba(27,67,50,.2));
  border-radius: 999px; color: var(--d-green);
}
.h2-at-tick { display: inline-flex; }
.h2-at-sched {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: calc(11 * var(--u)) calc(14 * var(--u));
  border: 1px solid var(--d-line); border-radius: calc(11 * var(--u));
}

/* ───────────────────────────────────────────────────────────────────────
   COMPACT · the stage stops being a fixed box and the panels stack
   ─────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .h2-at { padding: 64px 16px; }
  .h2-at-strip { justify-content: flex-start; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; }
  .h2-at-tab { font-size: 14px; padding: 10px 16px; }

  .h2-at-stage {
    aspect-ratio: auto;
    container-type: normal;
    border-radius: 16px;
    --u: 1px;             /* the unit stops scaling and becomes a real pixel */
  }
  /* capped and centred: stacked at 880 px the cards would otherwise run to
     full width and give 13 px text an unreadable line length */
  .h2-at-panel { position: static; padding: 16px; gap: 12px; max-width: 620px; margin: 0 auto; }
  .h2-at-panel[hidden] { display: none; }

  /* two columns will not fit; everything becomes one column */
  .h2-at-cols { flex-direction: column; gap: 12px; }
  .h2-at-col, .h2-at-col-wide { flex: 0 0 auto; }
  .h2-at-centre { max-width: none; }

  .h2-at-bar { flex-wrap: wrap; gap: 8px; }
  .h2-at-bar-d { margin-left: 0; }

  /* Only the blocked task survives. The three waiting ones are context, and
     the drafted note already says "drei nachgelagerte Arbeiten" in words —
     repeating them as rows costs a screen and adds nothing.
     (Explicit, not nth-of-type: the section heading is a div too and would
     throw the count off.) */
  .h2-at-task.is-waiting { display: none; }
  /* the second paragraph and the wave are decoration at this width */
  .h2-at-art-p:last-of-type { display: none; }
  .h2-at-wave { display: none; }

  .h2-at-cursor { display: none; }   /* no pointer on a touch device */
  .h2-at-kpi-v { font-size: 24px; }
  .h2-at-hero-img { height: 92px; }
}

/* ───────────────────────────────────────────────────────────────────────
   REDUCED MOTION · every panel rests on its finished state
   ─────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .h2-at *, .h2-at *::after { transition: none !important; animation: none !important; }
  .h2-at-hero-img { filter: none !important; }
}
