/* Startseite: Hero als Aevo-Board. Alles unter .hb, damit nichts mit style.css kollidiert. */
/* Bricolage Grotesque, SIL Open Font License 1.1 */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url('/fonts/bricolage-grotesque.woff2') format('woff2'); }

.hb {
  --paper: #eceff3;
  --tile: #ffffff;
  --line: rgba(26,26,46,0.09);
  --ink: #1a1a2e;
  --ink-2: #4a4f5c;
  --ink-3: #5f6470;
  --blue: #0075aa;
  --amber: #a15c00;
  --amber-bg: #fff6df;
  --amber-line: #f2d48a;
  --red: #b42318;
  --star: #c27803;
  --display: 'Bricolage Grotesque', 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  padding: 104px 48px 64px;
  margin-bottom: var(--section-gap);
}
.hb-inner { max-width: 1240px; margin: 0 auto; }
body.hb-zoom-open { overflow: hidden; }
.hb a { color: inherit; }
.hb button { font: inherit; color: inherit; }
.hb h1, .hb h2, .hb h3 { margin: 0; letter-spacing: normal; color: inherit; }
.hb svg.i { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hb .mac-version { display: inline-block; margin-left: 6px; font-size: 0.85em; font-weight: 500; opacity: 0.75; text-decoration: none; }
.hb .invite-note { margin: 18px 0 0 32px; text-align: left; }
.hb .invite-note .btn-outline { padding: 9px 16px; }

.hb .btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; transition: background 0.15s; }
.hb .btn:hover { background: #000; }
.hb .text-link { font-weight: 600; font-size: 0.95rem; color: var(--ink); text-underline-offset: 4px; }

/* Board */
.hb .board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 14px; }
.hb .tile { position: relative; text-align: left; background: var(--tile); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 14px; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 1px 2px rgba(26,26,46,0.04); }
.hb .tile.m { grid-column: span 2; }
.hb .tile.l { grid-column: span 2; grid-row: span 2; }
.hb .tile.lead { grid-column: span 2; grid-row: span 3; }

.hb .tile-head { display: flex; align-items: flex-start; gap: 10px; padding-right: 40px; }
.hb .check { flex: none; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid #9aa0aa; border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; transition: background 0.15s, border-color 0.15s; }
.hb .check svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.hb .check:hover { border-color: var(--blue); }
.hb .check:hover svg { opacity: 1; stroke: var(--blue); }
.hb .done .check, .hb .sub.done .check { background: var(--blue); border-color: var(--blue); }
.hb .done .check svg, .hb .sub.done .check svg { opacity: 1; stroke: #fff; }
.hb .done .tile-title, .hb .sub.done .sub-title { text-decoration: line-through; color: var(--ink-3); }
.hb .tile-title { font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1.35; letter-spacing: -0.1px; }
.hb .tile-tags { margin: 6px 0 0 28px; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; }
.hb .tag { display: inline-flex; align-items: center; gap: 5px; }
.hb .tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hb .tag.blue { color: var(--blue); }
.hb .tag.green { color: #0b7a4b; }
.hb .tag.violet { color: #6d3fd1; }
.hb .stars { color: var(--star); letter-spacing: 1px; font-size: 0.78rem; }
.hb .tile-note { margin: 8px 0 0 28px; font-size: 0.86rem; line-height: 1.5; color: var(--ink-3); }
.hb .subtasks { margin: 8px 0 0 28px; list-style: none; font-size: 0.82rem; line-height: 1.7; color: var(--ink-2); }
.hb .subtasks li { display: flex; align-items: center; gap: 7px; }
.hb .subtasks li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #9aa0aa; }
.hb .subtasks li.d { color: var(--ink-3); text-decoration: line-through; }
.hb .subtasks li.d::before { background: var(--blue); border-color: var(--blue); }

/* Zeile unter der Aufgabe */
.hb .meta { margin-top: auto; padding-top: 10px; padding-right: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-family: 'DM Sans', sans-serif; font-size: 0.76rem; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hb .meta span { display: inline-flex; align-items: center; gap: 5px; }
.hb .meta .due { color: var(--red); font-weight: 600; }
.hb .meta .soon { color: var(--amber); font-weight: 600; }
.hb .meta .muted { color: #6b7280; font-weight: 500; }

/* Score */
.hb .score { position: absolute; top: 12px; right: 12px; font-family: 'DM Sans', sans-serif; font-variant-numeric: tabular-nums; font-size: 0.76rem; font-weight: 600; color: var(--ink-2); background: #f1f2f5; border: 1px solid transparent; border-radius: 6px; padding: 3px 7px; cursor: pointer; }
.hb .score:hover, .hb .score[aria-expanded="true"] { border-color: var(--line); background: #fff; color: var(--ink); }
.hb .score.bump { animation: hb-bump 0.9s ease-out; }
@keyframes hb-bump { 0% { background: #d8ecf6; color: var(--blue); } 100% { background: #f1f2f5; } }
.hb .why { display: none; position: absolute; top: 42px; right: 10px; z-index: 6; width: 250px; padding: 14px 16px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px rgba(26,26,46,0.14); font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hb .why.open { display: block; }
.hb .why-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; color: var(--ink); font-weight: 600; }
.hb .why-head b { font-size: 1.15rem; }
.hb .why-row { margin-top: 8px; }
.hb .why-row > div { display: flex; justify-content: space-between; gap: 10px; }
.hb .why-row > div span:last-child { color: var(--ink); font-weight: 600; }
.hb .why-bar { margin-top: 4px; height: 4px; border-radius: 2px; background: #eef0f3; overflow: hidden; }
.hb .why-bar i { display: block; height: 100%; border-radius: 2px; background: var(--blue); }
.hb .why-row.defer .why-bar i { background: #d99a18; }
.hb .why-from { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); line-height: 1.45; }

.hb .zoom-btn { position: absolute; right: 10px; bottom: 10px; height: 28px; padding: 0 10px; border-radius: 7px; border: 0; background: #e3f0f7; color: #005f8a; display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.hb .tile.has-zoom .meta { padding-right: 140px; }
.hb .zoom-btn:hover { background: #dcebf4; }
.hb .zoom-btn svg.i { width: 14px; height: 14px; }

.hb .tile.stale { background: var(--amber-bg); border-color: var(--amber-line); }
.hb .stale-note { color: var(--amber); font-weight: 600; }

/* Hero-Kachel */
.hb .tile.lead { padding: 30px 34px 22px; background: #dcedf7; border-color: rgba(0,117,170,0.4); box-shadow: 0 1px 2px rgba(0,80,120,0.08); }
.hb .tile.lead .meta { color: #3f4b5a; }
.hb .tile.lead .tag.blue { color: #005f8a; }
.hb .tile.lead .tile-head { padding-right: 0; }
.hb .hero-dot { flex: none; width: 22px; height: 22px; margin-top: 10px; border: 2px solid var(--blue); border-radius: 50%; background: #fff; }
.hb .tile.lead h1 { font-family: var(--display); font-weight: 700; font-variation-settings: 'opsz' 96; font-size: clamp(2rem, 3.4vw, 2.95rem); line-height: 1.08; letter-spacing: -0.03em; }
.hb .tile.lead .tile-tags { margin-left: 32px; margin-top: 12px; }
.hb .tile.lead p { margin: 16px 0 0 32px; max-width: 46ch; font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); }
.hb .hero-actions { margin: 22px 0 0 32px; justify-content: flex-start; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.hb .tile.lead .meta { margin-left: 32px; padding-right: 0; }

/* Umschalter */
.hb .board-foot { margin-top: 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hb .switch { display: inline-flex; padding: 3px; background: rgba(26,26,46,0.06); border-radius: 10px; }
.hb .switch button { border: 0; background: transparent; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.hb .switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(26,26,46,0.1); }
.hb .reset { border: 0; background: none; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Liste: dieselben Kacheln als gleich hohe Zeilen */
.hb .board.list { grid-auto-rows: 52px; grid-auto-flow: row; }
.hb .board.list .tile.lead { grid-column: 1 / span 2; grid-row: 1 / span 8; }
.hb .board.list .tile:not(.lead) { grid-column: 3 / span 2; grid-row: auto; flex-direction: row; align-items: center; padding: 0 16px; background: var(--tile); border-color: var(--line); }
.hb .board.list .tile:not(.lead) > :not(.tile-head) { display: none; }
.hb .board.list .tile:not(.lead) .tile-head { min-width: 0; align-items: center; padding-right: 0; }
.hb .board.list .tile:not(.lead) .tile-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb .board.list .tile:not(.lead) .check { margin-top: 0; }

/* Zoom-Ansicht */
.hb .zoom { position: fixed; inset: 0; z-index: 300; background: rgba(26,26,46,0.28); display: none; }
.hb .zoom.open { display: flex; align-items: center; justify-content: center; padding: 24px; }
.hb .zoom-inner { position: relative; width: min(720px, 100%); max-height: 100%; background: var(--paper); border-radius: 18px; box-shadow: 0 30px 80px rgba(26,26,46,0.3); overflow: auto; padding: 18px 22px 22px; transform-origin: top left; }
.hb .zoom-bar { position: sticky; top: -18px; z-index: 2; margin: -18px -22px 0; padding: 18px 22px 10px; background: var(--paper); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hb .back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #fff; border-radius: 8px; padding: 7px 12px; font-size: 0.88rem; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(26,26,46,0.08); }
.hb .crumb { font-size: 0.9rem; color: var(--ink-3); }
.hb .crumb b { color: var(--ink); font-weight: 600; }
.hb .zoom-score { margin-left: auto; display: inline-flex; align-items: baseline; gap: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; color: var(--ink-2); background: #fff; border-radius: 10px; padding: 8px 14px; font-variant-numeric: tabular-nums; }
.hb .zoom-score b { font-size: 1.25rem; color: var(--ink); }
.hb .zoom-score.bump { animation: hb-bump 1.2s ease-out; }
.hb .zoom-title { margin: 14px 0 2px; font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.hb .zoom-sub { color: var(--ink-3); font-size: 0.86rem; }
.hb .zoom-hint { margin-top: 10px; font-size: 0.88rem; color: var(--blue); font-weight: 600; }
.hb .zoom-hint:empty { display: none; }
.hb .groups { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.hb .group h3 { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--ink-3); margin: 0 0 8px 4px; }
.hb .group { padding: 0; min-width: 0; }
.hb .group-tiles { display: grid; gap: 8px; }
.hb .sub { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px 11px; }
.hb .sub.top { border-color: rgba(0,117,170,0.45); box-shadow: 0 0 0 3px rgba(0,117,170,0.08); }
.hb .sub-head { display: flex; gap: 10px; align-items: flex-start; padding-right: 40px; }
.hb .sub-title { font-family: var(--display); font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.hb .sub .meta { margin-left: 28px; padding-right: 0; }
.hb .sub .score { top: 10px; right: 10px; cursor: default; }


@media (max-width: 980px) {
  .hb .board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; }
  .hb .tile.lead { grid-column: 1 / -1; grid-row: span 3; }
  .hb .board.list .tile.lead { grid-column: 1 / -1; grid-row: span 8; }
  .hb .board.list .tile:not(.lead) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hb .board { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .hb .board .tile { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: 120px; }
  .hb .board.list .tile:not(.lead) { min-height: 52px; }
  .hb .tile.lead { padding: 24px 20px 18px; }
  .hb .hero-dot { display: none; }
  .hb .tile.lead .tile-tags, .hb .tile.lead p, .hb .hero-actions, .hb .tile.lead .meta { margin-left: 0; }
  .hb .zoom.open { padding: 0; }
  .hb .zoom-inner { width: 100%; height: 100%; border-radius: 0; padding: 16px; }
  .hb .zoom-score { margin-left: 0; }
  .hb .zoom-bar { top: -16px; margin: -16px -16px 0; padding: 16px 16px 10px; }
}
@media (max-width: 900px) {
  .hb { padding: 92px 24px 48px; }
}
@media (max-width: 560px) {
  .hb { padding: 84px 16px 40px; }
  .hb .invite-note { margin-left: 0; }
}

/* Titelkachel: Aevo-Blau, weißes Logo */
.hb .tile.lead { background: #0a5c88; border-color: #0a5c88; color: #fff; box-shadow: 0 1px 2px rgba(0,60,90,0.2), 0 12px 32px rgba(10,92,136,0.22); }
.hb .lead-logo { display: block; width: 104px; height: auto; margin-bottom: 26px; filter: brightness(0) invert(1); }
.hb .lead-score { position: absolute; top: 22px; right: 22px; font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #0a5c88; background: #fff; border-radius: 7px; padding: 4px 9px; }
.hb .tile.lead h1 { color: #fff; }
.hb .tile.lead p { margin-left: 0; color: rgba(255,255,255,0.86); }
.hb .tile.lead .hero-actions { margin-left: 0; }
.hb .tile.lead .btn { background: #fff; color: #0d2a3d; }
.hb .tile.lead .btn:hover { background: #e8f2f8; }
.hb .tile.lead .text-link { color: #fff; }
.hb .tile.lead .meta { margin-left: 0; color: rgba(255,255,255,0.8); }
.hb .tile.lead .invite-note { margin-left: 0; }
.hb .tile.lead .invite-note p { color: #fff; }
.hb .tile.lead .invite-note .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
@media (max-width: 560px) { .hb .lead-logo { width: 88px; margin-bottom: 18px; } .hb .lead-score { top: 18px; right: 18px; } }
