/* ──────────────────────────────────────────────────────────────
   Tutario — Leistungen & Status
   CI matched to the client-facing "Blog-Automatisierung — So
   funktioniert es" doc: Onest, warm-grey bg, gradient teal hero,
   soft rounded shadow cards, teal/turq/lime palette.
   ────────────────────────────────────────────────────────────── */
:root {
  --lime:    #B6C607;
  --turq:    #00A9B8;
  --deep:    #156474;
  --deepest: #00424F;

  --bg:      #EEEEEE;
  --paper:   #FFFFFF;
  --ink:     #1b2a30;
  --muted:   #5c6a70;
  --line:    #e2e6e7;

  /* status colours (semantic — a board needs distinct hues) */
  --st-review:  #A9761F;  /* In Prüfung */
  --st-done:    #2E8B6A;  /* Live / Deployed */
  --st-progress:#2F7C8C;  /* In Arbeit */
  --st-parked:  #857f74;  /* Parkiert */
  --st-planned: #6B7A99;  /* Geplant */
  --st-open:    #7d8a90;  /* Offen */
  --st-blocked: #C0453A;  /* Blockiert */
  --st-testing: #6B5AA6;  /* In Test */

  --radius: 18px;
  --shadow: 0 2px 16px rgba(0,66,79,.06);
  --shadow-lift: 0 10px 30px rgba(0,66,79,.12);
  --maxw: 880px;
  --h-top: 52px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
a { color: var(--turq); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Slim top bar */
header.top { position: sticky; top: 0; z-index: 30; height: var(--h-top); background: rgba(238,238,238,.86); backdrop-filter: saturate(1.3) blur(9px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 13px; height: var(--h-top); max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.brand { display: flex; align-items: center; }
.logo { height: 24px; width: auto; display: block; }
.updated { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Brand tabs (top-level) */
.brandnav { display: flex; gap: 2px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.brandtab { font-family: inherit; font-size: 14px; font-weight: 700; color: var(--muted); background: none; border: none; cursor: pointer; padding: 6px 12px 8px; border-radius: 8px 8px 0 0; position: relative; }
.brandtab:hover { color: var(--deepest); }
.brandtab.active { color: var(--deepest); }
.brandtab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--lime); }

/* Gradient hero */
.hero { background: linear-gradient(135deg, var(--deepest) 0%, var(--deep) 100%); color: #fff; border-radius: 0 0 26px 26px; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px 40px 44px; }
.brand-eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; font-size: .82rem; text-transform: uppercase; color: var(--lime); margin: 0 0 16px; }
.brand-eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); display: inline-block; }
.hero h1 { font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.35rem); line-height: 1.12; margin: 0; color: #fff; letter-spacing: -0.01em; }
.hero p.lead { font-size: 1.08rem; color: #d9e6e8; margin: 14px 0 0; max-width: 60ch; }

/* Sub-nav (jump links) */
.subnav { position: sticky; top: var(--h-top); z-index: 20; background: rgba(238,238,238,.92); backdrop-filter: saturate(1.3) blur(9px); }
.subnav-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 16px; display: flex; gap: 4px; align-items: center; overflow-x: auto; }
.depttab { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 7px 15px; border-radius: 999px; white-space: nowrap; background: transparent; border: none; cursor: pointer; }
.depttab:hover { background: #fff; color: var(--deepest); box-shadow: var(--shadow); }
.depttab.active { color: var(--deepest); background: #fff; box-shadow: var(--shadow); }

main { padding: 26px 0 70px; }

/* Draft banner — "note" style from the reference doc */
.draft { max-width: var(--maxw); margin: 0 auto 20px; padding: 0 22px; }
.draft-inner { border-left: 4px solid var(--lime); background: #fbfdf2; border-radius: 0 14px 14px 0; padding: 16px 20px; font-size: .95rem; color: var(--muted); box-shadow: var(--shadow); }
.draft-inner strong { color: var(--deepest); }

/* Summary row */
.summary-row { display: flex; flex-wrap: wrap; background: var(--paper); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow); }
.stat { flex: 1 1 0; min-width: 92px; padding: 18px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--deepest); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat .lbl { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat .dot { width: 7px; height: 7px; border-radius: 50%; }

/* Status pill */
.pill { font-size: 11.5px; font-weight: 700; padding: 5px 12px 5px 10px; border-radius: 999px; white-space: nowrap; color: var(--st); background: color-mix(in srgb, var(--st) 12%, #fff); border: 1px solid color-mix(in srgb, var(--st) 26%, transparent); display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.pill .pdot { width: 6.5px; height: 6.5px; border-radius: 50%; background: var(--st); }

/* Cards */
.plist { display: flex; flex-direction: column; gap: 20px; }
.pcard { background: var(--paper); border-radius: var(--radius); padding: 26px 30px 24px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.pcard h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin: 0; color: var(--deepest); }
.pcard .sub { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pcard-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 30px; margin-top: 20px; }
.block-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }

/* Requirements — lime dots */
.req { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.req li { position: relative; padding-left: 19px; font-size: .95rem; color: var(--ink); line-height: 1.5; }
.req li::before { content: ""; position: absolute; left: 1px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

/* Updates feed — timeline */
.feed { position: relative; display: flex; flex-direction: column; gap: 16px; }
.feed::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.msg { position: relative; padding-left: 21px; }
.msg .m-dot { position: absolute; left: 0.5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--st, var(--turq)); box-shadow: 0 0 0 3px var(--paper); }
.m-date { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; }
.m-text { font-size: .95rem; color: var(--ink); margin-top: 3px; line-height: 1.5; }
.m-text code { font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #eef7f8; padding: 1px 5px; border-radius: 4px; color: var(--deepest); }

/* Attached documents */
.docs { margin-top: 18px; }
.doc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--deepest); background: var(--paper); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: box-shadow .15s, border-color .15s; }
.doc-link:hover { text-decoration: none; box-shadow: var(--shadow); border-color: var(--turq); }
.doc-link .ic { font-size: 13px; line-height: 1; color: var(--turq); }
.doc-link.locked { color: var(--muted); background: #f4f5f5; cursor: default; }
.doc-link.locked:hover { box-shadow: none; border-color: var(--line); }
.doc-link.locked .ic { color: var(--muted); }

/* Blocker note */
.blocker { margin-top: 18px; background: color-mix(in srgb, var(--st-blocked) 7%, #fff); border-left: 4px solid var(--st-blocked); border-radius: 0 14px 14px 0; padding: 14px 18px; }
.blk-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--st-blocked); font-weight: 800; margin-bottom: 5px; }
.blk-text { font-size: .95rem; color: var(--ink); line-height: 1.5; }

/* Myexpatslife placeholder */
.brand-empty { max-width: var(--maxw); margin: 0 auto 20px; padding: 0 22px; }
.brand-empty-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 40px; }
.brand-empty-card .brand-eyebrow { margin-bottom: 14px; }
.brand-empty-card h2 { color: var(--deepest); font-weight: 800; font-size: 1.5rem; margin: 0 0 8px; }
.brand-empty-card p:last-child { color: var(--muted); margin: 0; max-width: 52ch; }

/* Empty department note */
.empty-dept { text-align: center; color: var(--muted); font-size: .95rem; padding: 30px 0; margin: 0; }

/* Footer */
footer { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 34px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
footer p { margin: 0; }

@media (max-width: 760px) { .pcard-grid { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 560px) {
  .hero-inner { padding: 40px 24px 34px; }
  .pcard { padding: 22px 22px 20px; }
  .pcard-head { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .stat { flex-basis: 33%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
