/* Office tasks v2: task navigation on the left (top bar on narrow screens), calm "So geht's" box, hub with three groups.
   Colours are --ui-* tokens only (theme.css); red fills never carry dark text. Design: docs/design/buero-klein-v2/. */
.ui.ot-with-nav, .ui.ot { --ot-nav: 232px; }
.ot-nav {
  display: flex; gap: 6px; padding: 10px clamp(12px, 3vw, 24px); overflow-x: auto;
  border-bottom: 1px solid var(--ui-line); background: var(--ui-surface);
}
.ot-nav a {
  flex: none; display: flex; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: 12px;
  color: var(--ui-ink); font-weight: 700; font-size: 18px; line-height: 1.25; text-decoration: none; white-space: nowrap;
}
.ot-nav a:hover { background: var(--ui-soft); }
.ot-nav a[aria-current="page"] { background: color-mix(in srgb, var(--ui-accent) 12%, var(--ui-surface)); color: var(--ui-primary); }
.ot-nav a:focus-visible, .ot-help-button:focus-visible, .ot-group a:focus-visible, .ot-how summary:focus-visible { outline: 4px solid var(--ui-focus); outline-offset: 3px; }

@media (min-width: 1100px) {
  .ui.ot-with-nav { padding-left: var(--ot-nav); }
  .ot-nav {
    position: fixed; inset: 0 auto 0 0; z-index: 6; width: var(--ot-nav); flex-direction: column; gap: 4px; padding: 24px 14px;
    overflow-x: hidden; overflow-y: auto; border-bottom: 0; border-right: 1px solid var(--ui-line);
  }
  .ot-nav a { white-space: normal; }
}

/* "So geht's": always visible first, can be folded. */
.ot-how {
  margin: 0 0 24px; padding: 18px 24px; border-left: 5px solid var(--ui-accent); border-radius: 0 16px 16px 0;
  background: var(--ui-soft); color: var(--ui-ink); font-size: 19px; line-height: 1.5;
}
.ot-how summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.ot-how p { margin: 6px 0 0; max-width: 62rem; }
.ot-how-page { margin-bottom: 20px; }

/* Hub */
.ui.ot .ot-main { padding-top: 28px; padding-bottom: 56px; font-size: 19px; }
.ot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.ot-eyebrow { margin: 0 0 12px; color: var(--ui-primary); font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; }
.ui.ot .ot-main h1 { margin: 0; font-size: clamp(36px, 4.3vw, 56px); line-height: 1.08; letter-spacing: -.035em; }
.ot-intro { margin: 10px 0 0; color: var(--ui-muted); font-size: 21px; }
.ui .ot-help-button {
  flex: none; width: 64px; height: 64px; min-height: 0; padding: 0; border: 1px solid var(--ui-line); border-radius: 50%;
  background: var(--ui-surface); color: var(--ui-ink); font: inherit; font-size: 26px; font-weight: 700; cursor: pointer;
}
.ui .ot-help-button[aria-expanded="true"] { background: var(--ui-soft); }
.ot-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.ot-group { padding: 26px 24px 12px; border: 1px solid var(--ui-line); border-radius: 24px; background: var(--ui-surface); color: var(--ui-ink); }
.ui.ot .ot-group h2 { margin: 0 0 14px; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; }
.ot-group ul { margin: 0; padding: 0; list-style: none; }
.ot-group li { border-top: 1px solid var(--ui-line); }
.ot-group a {
  position: relative; display: grid; gap: 4px; min-height: 64px; padding: 18px 40px 18px 4px; color: inherit; text-decoration: none; border-radius: 12px;
}
.ot-group a::after { content: "›"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 700; color: var(--ui-primary); }
.ot-group a:hover { background: var(--ui-soft); }
.ot-group strong { font-size: 22px; }
.ot-group span { color: var(--ui-muted); font-size: 18px; }
.ot-skip { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 16px 20px; border-radius: 10px; background: var(--ui-action); color: var(--ui-on-action); font-weight: 700; }
.ot-skip:focus { top: 10px; }

@media (max-width: 1099px) {
  .ot-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ot-groups { grid-template-columns: 1fr; gap: 16px; }
  .ot-group { padding: 20px 18px 8px; border-radius: 18px; }
  .ot-head { gap: 12px; }
  .ui .ot-help-button { width: 56px; height: 56px; }
  .ot-how { padding: 14px 16px; }
}
