/* Valora Teampanel – "Night Ocean" */
:root {
  --bg: #060b14;
  --bg-2: #0a1220;
  --glass: rgba(15, 25, 43, 0.72);
  --glass-2: rgba(22, 36, 60, 0.78);
  --solid: #0d1626;
  --solid-2: #122036;
  --line: rgba(140, 180, 255, 0.10);
  --line-2: rgba(140, 180, 255, 0.20);
  --text: #e8eef8;
  --muted: #8fa3bf;
  --dim: #5d7190;
  --blue: #2b8cff;
  --indigo: #5b6bff;
  --sunset: #ff8a3d;
  --coral: #ff5d73;
  --mint: #2ee6a6;
  --amber: #ffc24b;
  --violet: #a78bfa;
  --grad: linear-gradient(135deg, #2b8cff 0%, #5b6bff 100%);
  --grad-sun: linear-gradient(135deg, #ff8a3d 0%, #ff5d73 100%);
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 11px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 14px/1.5 var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(43, 140, 255, 0.20), transparent 60%),
    radial-gradient(700px 420px at 100% 110%, rgba(255, 138, 61, 0.10), transparent 60%),
    radial-gradient(600px 400px at 70% 10%, rgba(91, 107, 255, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(43, 140, 255, 0.4); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(140, 180, 255, 0.14); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.svg-i { width: 18px; height: 18px; flex: none; }

/* ---------- Grundgerüst ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.dock {
  position: sticky; top: 0; height: 100vh; padding: 14px 0 14px 14px;
  display: flex;
}
.dock-inner {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  background: var(--glass); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 10px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 14px; border-bottom: 1px dashed var(--line); margin-bottom: 6px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 14px; padding: 2px; background: var(--grad); flex: none;
  box-shadow: 0 6px 20px -6px rgba(43, 140, 255, 0.7);
}
.brand-logo img, .brand-logo span { width: 100%; height: 100%; border-radius: 12px; display: grid; place-items: center; background: var(--solid); object-fit: cover; font-family: var(--display); font-weight: 700; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.1; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sunset); font-weight: 600; }
.nav-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding: 12px 12px 4px; font-weight: 600; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px;
  color: var(--muted); font-weight: 500; transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: rgba(140, 180, 255, 0.06); color: var(--text); }
.nav a.active { color: #fff; background: linear-gradient(90deg, rgba(43, 140, 255, 0.22), rgba(91, 107, 255, 0.06)); }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px var(--blue); }
.nav a.active .svg-i { color: var(--blue); }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: rgba(255, 138, 61, 0.16); color: var(--sunset); }
.dock-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.me-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; }
.me-card:hover { background: rgba(140, 180, 255, 0.05); }
.me-card .name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.me-card .sub { font-size: 11.5px; color: var(--muted); }
.me-card .icon-btn { margin-left: auto; }

.main { min-width: 0; padding: 14px 28px 48px; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 4px 22px; }
.topbar .menu-btn { display: none; }
.crumbs { font-size: 12.5px; color: var(--dim); display: flex; gap: 6px; align-items: center; }
.crumbs a:hover { color: var(--text); }
.page-title { font-size: 26px; line-height: 1.15; margin-top: 2px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-btn {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-width: 220px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--dim); cursor: pointer;
}
.search-btn:hover { border-color: var(--line-2); color: var(--muted); }
.search-btn kbd { margin-left: auto; }
kbd { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.clock { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); }

/* ---------- Bausteine ---------- */
.card {
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15.5px; }
.card-head .tools { margin-left: auto; display: flex; gap: 8px; }
.section-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.section-head h2 { font-size: 18px; }
.section-head .tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; }
.g-side-l { grid-template-columns: 260px minmax(0, 1fr); }
.g-meet { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sep { height: 1px; background: var(--line); margin: 14px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(140, 180, 255, 0.05); font-weight: 600; font-size: 13px; cursor: pointer;
  transition: transform 0.08s, background 0.15s, border-color 0.15s; white-space: nowrap;
}
.btn:hover { background: rgba(140, 180, 255, 0.10); border-color: rgba(140, 180, 255, 0.3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn .svg-i { width: 16px; height: 16px; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px -10px rgba(43, 140, 255, 0.9); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); border-color: transparent; }
.btn-sun { background: var(--grad-sun); border-color: transparent; color: #fff; box-shadow: 0 8px 22px -10px rgba(255, 93, 115, 0.9); }
.btn-sun:hover { background: var(--grad-sun); filter: brightness(1.08); }
.btn-danger { color: var(--coral); border-color: rgba(255, 93, 115, 0.3); background: rgba(255, 93, 115, 0.06); }
.btn-danger:hover { background: rgba(255, 93, 115, 0.14); border-color: rgba(255, 93, 115, 0.5); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 10px; }
.btn.block { width: 100%; padding: 11px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: rgba(140, 180, 255, 0.08); color: var(--text); border-color: var(--line); }
.icon-btn.danger:hover { color: var(--coral); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
  background: rgba(140, 180, 255, 0.04);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chip.blue { color: #7cb8ff; border-color: rgba(43, 140, 255, 0.35); background: rgba(43, 140, 255, 0.10); }
.chip.mint { color: var(--mint); border-color: rgba(46, 230, 166, 0.3); background: rgba(46, 230, 166, 0.08); }
.chip.amber { color: var(--amber); border-color: rgba(255, 194, 75, 0.3); background: rgba(255, 194, 75, 0.08); }
.chip.coral { color: var(--coral); border-color: rgba(255, 93, 115, 0.35); background: rgba(255, 93, 115, 0.08); }
.chip.violet { color: var(--violet); border-color: rgba(167, 139, 250, 0.35); background: rgba(167, 139, 250, 0.08); }
.chip.sun { color: var(--sunset); border-color: rgba(255, 138, 61, 0.35); background: rgba(255, 138, 61, 0.08); }
.chip.gray { color: var(--dim); }
.key { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 1px 7px; border-radius: 7px; background: rgba(140, 180, 255, 0.07); border: 1px solid var(--line); }

.avatar { width: 32px; height: 32px; border-radius: 11px; object-fit: cover; flex: none; background: var(--solid-2); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); position: relative; }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 20px; }
.avatar.sm { width: 24px; height: 24px; border-radius: 8px; font-size: 10px; }
.ava-wrap { position: relative; display: inline-flex; flex: none; }
.presence { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--bg-2); background: var(--dim); }
.presence.online { background: var(--mint); }
.presence.idle { background: var(--amber); }
.presence.dnd { background: var(--coral); }
.ava-stack { display: flex; }
.ava-stack > * { margin-left: -8px; border: 2px solid var(--bg-2); border-radius: 10px; }
.ava-stack > *:first-child { margin-left: 0; }
.ava-more { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--solid-2); color: var(--muted); }

.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .svg-i { width: 26px; height: 26px; color: var(--blue); margin-bottom: 10px; }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: rgba(43, 140, 255, 0.10); border: 1px solid rgba(43, 140, 255, 0.25); }
.empty-icon .svg-i { margin: 0; }
.empty b { display: block; color: var(--text); font-family: var(--display); font-size: 15px; margin-bottom: 2px; }

/* Listen */
.list > * { border-top: 1px solid var(--line); }
.list > *:first-child { border-top: 0; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; transition: background 0.12s; }
a.li:hover, .li.click:hover { background: rgba(140, 180, 255, 0.04); cursor: pointer; }
.li .title { font-weight: 600; }
.li .sub { font-size: 12px; color: var(--muted); }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field > span .req { color: var(--coral); }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(6, 11, 20, 0.6); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: rgba(43, 140, 255, 0.6); box-shadow: 0 0 0 3px rgba(43, 140, 255, 0.15); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238fa3bf' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select option { background: var(--solid); }
.input.inline { padding: 6px 10px; border-radius: 10px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.check input { accent-color: var(--blue); width: 16px; height: 16px; }
.pick-list { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 11, 20, 0.5); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: rgba(43, 140, 255, 0.18); color: #fff; }

/* Modal */
dialog.modal { padding: 0; border: 0; background: transparent; color: var(--text); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); }
dialog.modal.wide { width: min(820px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(3, 6, 12, 0.7); backdrop-filter: blur(6px); }
.modal-box { background: linear-gradient(180deg, var(--solid-2), var(--solid)); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; animation: pop 0.16s ease-out; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 6px; }
.modal-head h3 { font-size: 18px; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 12px 20px 4px; max-height: calc(100vh - 200px); overflow: auto; }
.modal-foot { padding: 6px 20px 20px; display: flex; gap: 10px; }
.modal-foot .btn { flex: 1; padding: 11px; }
@keyframes pop { from { transform: translateY(8px) scale(0.98); opacity: 0; } }

/* Toast */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--solid-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop 0.2s ease-out; max-width: 380px; }
.toast.ok .svg-i { color: var(--mint); }
.toast.err .svg-i { color: var(--coral); }

/* Befehlspalette */
.palette { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding-top: 12vh; background: rgba(3, 6, 12, 0.6); backdrop-filter: blur(6px); }
.palette-box { width: min(600px, calc(100vw - 32px)); background: var(--solid-2); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; animation: pop 0.14s ease-out; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-input input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; }
.palette-list { max-height: 50vh; overflow: auto; padding: 6px; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; cursor: pointer; }
.palette-item.on { background: rgba(43, 140, 255, 0.16); }
.palette-item .kind { margin-left: auto; font-size: 11px; color: var(--dim); }
.palette-group { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding: 10px 12px 4px; font-weight: 600; }

/* ---------- Startseite ---------- */
.hero {
  position: relative; overflow: hidden; padding: 26px 28px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(43, 140, 255, 0.28), rgba(91, 107, 255, 0.16) 45%, rgba(255, 138, 61, 0.14));
  border: 1px solid rgba(120, 170, 255, 0.22);
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60px -10%; height: 140px; opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C150 20 300 120 450 70 S750 20 900 70 S1100 120 1200 60 V140 H0Z' fill='%232b8cff' fill-opacity='.25'/%3E%3Cpath d='M0 95 C200 55 350 135 600 95 S950 55 1200 95 V140 H0Z' fill='%235b6bff' fill-opacity='.25'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero .avatar.lg { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 10px 30px -10px rgba(0, 0, 0, 0.7); }
.hero-greet { font-size: 13px; color: #c9d8ef; }
.hero h1 { font-size: 30px; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hero-right { margin-left: auto; text-align: right; }
.hero-right .big { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; }
.rank-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(6, 11, 20, 0.45); border: 1px solid rgba(255, 255, 255, 0.12); }
.rank-chip i { width: 8px; height: 8px; border-radius: 3px; transform: rotate(45deg); background: var(--c, var(--blue)); box-shadow: 0 0 10px var(--c, var(--blue)); }

.tile { padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.tile .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.tile .ic.blue { background: rgba(43, 140, 255, 0.14); color: var(--blue); }
.tile .ic.sun { background: rgba(255, 138, 61, 0.14); color: var(--sunset); }
.tile .ic.mint { background: rgba(46, 230, 166, 0.12); color: var(--mint); }
.tile .ic.coral { background: rgba(255, 93, 115, 0.12); color: var(--coral); }
.tile .num { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.tile .lbl { font-size: 12px; color: var(--muted); }
a.tile:hover { border-color: var(--line-2); }

.ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--mint) calc(var(--p) * 1%), rgba(140, 180, 255, 0.1) 0); }
.ring span { width: 36px; height: 36px; border-radius: 50%; background: var(--solid); display: grid; place-items: center; font-size: 11px; font-weight: 700; }

/* Besprechungs-Zeitleiste */
.date-block { width: 54px; flex: none; text-align: center; border-radius: 14px; padding: 6px 0; background: rgba(43, 140, 255, 0.10); border: 1px solid rgba(43, 140, 255, 0.22); }
.date-block .d { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.1; }
.date-block .m { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.date-block.running { background: rgba(46, 230, 166, 0.12); border-color: rgba(46, 230, 166, 0.35); }
.date-block.past { background: rgba(140, 180, 255, 0.04); border-color: var(--line); }
.date-block.cancelled { opacity: 0.5; }
.meet-title.cancelled { text-decoration: line-through; color: var(--dim); }
.month-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding: 14px 20px 6px; font-weight: 600; border-top: 0 !important; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(46, 230, 166, 0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(46, 230, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); } }

/* Anwesenheit */
.att-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: rgba(140, 180, 255, 0.08); }
.att-bar > i { display: block; }
.att-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.att-legend b { color: var(--text); }
.att-pick { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 11, 20, 0.5); }
.att-pick button { border: 0; background: transparent; padding: 5px 10px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--dim); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.att-pick button:hover { color: var(--text); }
.att-pick button.on.present { background: rgba(46, 230, 166, 0.16); color: var(--mint); }
.att-pick button.on.excused { background: rgba(255, 194, 75, 0.14); color: var(--amber); }
.att-pick button.on.absent { background: rgba(255, 93, 115, 0.14); color: var(--coral); }
.att-pick button:disabled { cursor: default; }
.info-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13px; }
.info-row span:first-child { color: var(--muted); }
.agenda { white-space: pre-wrap; background: rgba(6, 11, 20, 0.5); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 16px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.col { background: rgba(10, 18, 32, 0.55); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; min-height: 200px; transition: border-color 0.15s, background 0.15s; }
.col.over { border-color: rgba(43, 140, 255, 0.5); background: rgba(43, 140, 255, 0.06); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px; }
.col-head h3 { font-size: 14px; }
.col-head .bar { width: 22px; height: 4px; border-radius: 4px; }
.col-head .n { font-size: 12px; color: var(--dim); font-weight: 600; }
.col-head .icon-btn { margin-left: auto; width: 28px; height: 28px; }
.tasks { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.task {
  position: relative; padding: 12px 12px 12px 16px; border-radius: 14px; cursor: grab;
  background: var(--glass-2); border: 1px solid var(--line); transition: border-color 0.12s, transform 0.12s;
}
.task:hover { border-color: var(--line-2); transform: translateY(-1px); }
.task::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--pc, var(--dim)); }
.task.dragging { opacity: 0.4; }
.task .t-title { font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.task.done .t-title { color: var(--muted); }
.task .t-desc { font-size: 12px; color: var(--muted); margin: -4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task .t-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.task .t-foot .ava-stack { margin-left: auto; }
.drop-hint { height: 3px; border-radius: 3px; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.board-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.board-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--bc, var(--grad)); }
.board-card:hover { border-color: var(--line-2); }
.swatch { display: block; width: 28px; height: 28px; border-radius: 10px; background: var(--c); border: 2px solid transparent; transition: transform 0.1s; }
input:checked + .swatch { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 40%, transparent); transform: scale(1.08); }
.li > .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(140, 180, 255, 0.06); flex: none; }
.progress { height: 6px; border-radius: 6px; background: rgba(140, 180, 255, 0.08); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }

/* ---------- Support ---------- */
.status-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.status-rail button { text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; position: relative; overflow: hidden; }
.status-rail button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--sc, var(--blue)); opacity: 0.6; }
.status-rail button.on { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, transparent); }
.status-rail .n { font-family: var(--display); font-size: 24px; font-weight: 700; display: block; }
.status-rail .l { font-size: 12px; color: var(--muted); }
.chart { width: 100%; height: 170px; display: block; }
.chart .lbl { fill: var(--dim); font-size: 10px; font-family: var(--font); }
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--solid-2); border: 2px solid var(--dim); }
.tl-item.note::before { border-color: var(--amber); }
.tl-item.reply::before { border-color: var(--blue); background: var(--blue); }
.tl-item.status::before { border-color: var(--mint); }
.tl-item .meta { font-size: 11.5px; color: var(--dim); }
.tl-item .body { margin-top: 3px; white-space: pre-wrap; }
.tl-item.note .body, .tl-item.reply .body { background: rgba(6, 11, 20, 0.5); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.transcript { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; max-height: 420px; overflow: auto; background: rgba(6, 11, 20, 0.6); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }

/* ---------- Dokumente ---------- */
.folders a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 11px; color: var(--muted); font-weight: 500; }
.folders a:hover { background: rgba(140, 180, 255, 0.05); color: var(--text); }
.folders a.on { background: rgba(43, 140, 255, 0.14); color: #fff; }
.folders a .n { margin-left: auto; font-size: 11.5px; color: var(--dim); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.doc-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; position: relative; overflow: hidden; }
.doc-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.doc-card .fold { position: absolute; right: 0; top: 0; width: 34px; height: 34px; background: linear-gradient(225deg, var(--bg) 50%, rgba(140, 180, 255, 0.12) 50%); }
.doc-card .doc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc, var(--blue)) 16%, transparent); color: var(--tc, var(--blue)); }
.doc-card h4 { font-size: 15px; }
.doc-card .foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--dim); }
.tag { display: inline-flex; padding: 2px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--tc); background: color-mix(in srgb, var(--tc) 15%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent); }
.md { line-height: 1.7; font-size: 14.5px; }
.md h1, .md h2, .md h3 { margin: 1.3em 0 0.5em; }
.md h1 { font-size: 26px; } .md h2 { font-size: 20px; } .md h3 { font-size: 16.5px; }
.md > :first-child { margin-top: 0; }
.md p { margin: 0 0 0.9em; }
.md a { color: #7cb8ff; text-decoration: underline; text-underline-offset: 3px; }
.md code { font-family: var(--mono); font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: rgba(140, 180, 255, 0.10); }
.md pre { background: rgba(6, 11, 20, 0.7); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow: auto; }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: 0 0 1em; padding: 8px 16px; border-left: 3px solid var(--sunset); background: rgba(255, 138, 61, 0.06); border-radius: 0 12px 12px 0; color: #d8e2f1; }
.md ul, .md ol { padding-left: 1.4em; margin: 0 0 1em; }
.md hr { border: 0; height: 1px; background: var(--line-2); margin: 1.6em 0; }
.md table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.editor .textarea { min-height: 460px; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.editor .preview { min-height: 460px; max-height: 70vh; overflow: auto; padding: 16px; border: 1px dashed var(--line-2); border-radius: 12px; }

/* ---------- Mitglieder ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.member-card { padding: 18px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; overflow: hidden; }
.member-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 58px; background: linear-gradient(180deg, color-mix(in srgb, var(--rc, var(--blue)) 30%, transparent), transparent); }
.member-card > * { position: relative; }
.member-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.member-card .avatar { width: 58px; height: 58px; border-radius: 19px; font-size: 18px; }
.member-card .name { font-family: var(--display); font-weight: 600; font-size: 15.5px; }
.member-card .flags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 22px; }
.rank-group { margin-bottom: 22px; }
.rank-group h4 { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; letter-spacing: 0.02em; }
.rank-group h4 i { width: 9px; height: 9px; border-radius: 3px; transform: rotate(45deg); background: var(--rc, var(--blue)); box-shadow: 0 0 10px var(--rc, var(--blue)); }
.strike { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; }
.strike .pts { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-family: var(--display); background: rgba(255, 93, 115, 0.12); color: var(--coral); flex: none; }
.strike.inactive { opacity: 0.45; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-box { width: min(420px, 100%); padding: 34px 30px; text-align: center; }
.login-box .brand-logo { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 16px; }
.login-box .brand-logo img, .login-box .brand-logo span { border-radius: 22px; font-size: 26px; }
.login-box h1 { font-size: 26px; }
.login-box p { color: var(--muted); }
.login-alt { margin-top: 18px; padding: 14px; border-radius: 14px; background: rgba(6, 11, 20, 0.5); border: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.login-alt code { font-family: var(--mono); color: var(--sunset); }
.alert { padding: 10px 14px; border-radius: 12px; background: rgba(255, 93, 115, 0.1); border: 1px solid rgba(255, 93, 115, 0.3); color: #ffc2cb; margin: 14px 0; font-size: 13px; }
.alert.info { background: rgba(43, 140, 255, 0.08); border-color: rgba(43, 140, 255, 0.3); color: #bcd9ff; }

.skeleton { height: 120px; border-radius: var(--r-lg); background: linear-gradient(90deg, rgba(140, 180, 255, 0.04), rgba(140, 180, 255, 0.09), rgba(140, 180, 255, 0.04)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fade-in { animation: fadein 0.2s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Seitenleiste: Kopf, Zähler, Einklappen ---------- */
.shell { transition: grid-template-columns 0.22s ease; }
.brand-row { display: flex; align-items: flex-start; gap: 4px; border-bottom: 1px dashed var(--line); margin-bottom: 6px; }
.brand-row .brand { border-bottom: 0; margin-bottom: 0; flex: 1; min-width: 0; }
.brand-text { min-width: 0; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collapse-btn { width: 30px; height: 30px; margin-top: 12px; flex: none; }
.nav .count { line-height: 18px; min-width: 20px; text-align: center; }
.nav .count.live { background: rgba(46, 230, 166, 0.16); color: var(--mint); animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 12px rgba(46, 230, 166, 0.5); } }
.nav-hint {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; margin-bottom: 6px;
  border: 0; border-radius: 12px; background: transparent; color: var(--dim); font-size: 12.5px; cursor: pointer;
}
.nav-hint:hover { background: rgba(140, 180, 255, 0.05); color: var(--muted); }
.nav-hint kbd { margin-left: auto; }

@media (min-width: 981px) {
.shell.collapsed { grid-template-columns: 86px 1fr; }
.shell.collapsed .brand-text, .shell.collapsed .nav a > span, .shell.collapsed .nav a > .svg-i + span + .svg-i,
.shell.collapsed .nav-label, .shell.collapsed .nav-hint span, .shell.collapsed .nav-hint kbd, .shell.collapsed .me-text,
.shell.collapsed .me-card .icon-btn { display: none; }
.shell.collapsed .brand-row { flex-direction: column; align-items: center; }
.shell.collapsed .brand { padding: 6px 0 8px; justify-content: center; }
.shell.collapsed .collapse-btn { margin: 0 0 8px; transform: scaleX(-1); }
.shell.collapsed .nav a { justify-content: center; padding: 11px 0; }
.shell.collapsed .nav a.active::before { left: -10px; }
.shell.collapsed .nav .count { position: absolute; top: 3px; right: 6px; margin: 0; padding: 0 5px; font-size: 10px; line-height: 15px; min-width: 15px; }
.shell.collapsed .nav-hint { justify-content: center; }
.shell.collapsed .me-card { justify-content: center; padding: 8px 0; }
.shell.collapsed .me-card > a { flex: none; }
.shell.collapsed .nav a:hover::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  padding: 5px 10px; border-radius: 9px; background: var(--solid-2); border: 1px solid var(--line-2); color: var(--text);
  font-size: 12.5px; white-space: nowrap; box-shadow: var(--shadow); z-index: 5; pointer-events: none;
}
.shell.collapsed .dock-inner { overflow: visible; }
}

.shortcut-list { display: flex; flex-direction: column; }
.shortcut { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.shortcut:first-child { border-top: 0; }
.shortcut kbd { margin-left: 4px; font-size: 11.5px; padding: 3px 8px; }

/* ---------- Startseite: nächste Besprechung, Woche, Aktivität ---------- */
.next-meet {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 12px 8px 14px; max-width: 100%;
  border-radius: 14px; background: rgba(6, 11, 20, 0.45); border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13px; color: #c9d8ef; transition: border-color 0.15s, background 0.15s;
}
.next-meet:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(6, 11, 20, 0.6); }
.next-meet b { color: #fff; }
.next-meet .nm-time { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 8px; background: rgba(43, 140, 255, 0.2); color: #bcd9ff; white-space: nowrap; }
.next-meet.live { border-color: rgba(46, 230, 166, 0.4); }
.next-meet.live .nm-time { background: rgba(46, 230, 166, 0.18); color: var(--mint); }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.week-day {
  display: flex; flex-direction: column; gap: 8px; min-height: 120px; padding: 10px; border-radius: 14px;
  background: rgba(6, 11, 20, 0.35); border: 1px solid var(--line); transition: border-color 0.15s;
}
.week-day.busy { background: rgba(43, 140, 255, 0.05); }
.week-day.today { border-color: rgba(43, 140, 255, 0.5); box-shadow: inset 0 0 0 1px rgba(43, 140, 255, 0.15), 0 8px 24px -14px rgba(43, 140, 255, 0.8); }
.wd-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.wd-head b { font-family: var(--display); font-size: 20px; color: var(--text); letter-spacing: 0; }
.week-day.today .wd-head span { color: var(--blue); }
.wd-items { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.wd-item { display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 8px; font-size: 11.5px; font-weight: 600; min-width: 0; }
.wd-item .svg-i { width: 13px; height: 13px; }
.wd-item.meet { background: rgba(43, 140, 255, 0.14); color: #a9cfff; }
.wd-item.task { background: rgba(255, 138, 61, 0.12); color: #ffc19a; }
.wd-item:hover { filter: brightness(1.2); }
.wd-free { font-size: 11.5px; color: var(--dim); opacity: 0.7; }
.wd-away { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--amber); }
.wd-away .svg-i { width: 12px; height: 12px; }

.feed { padding: 6px 8px 10px; max-height: 440px; overflow: auto; }
.feed-item { display: flex; gap: 12px; padding: 9px 12px; border-radius: 12px; position: relative; }
a.feed-item:hover { background: rgba(140, 180, 255, 0.05); }
.feed-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(43, 140, 255, 0.10); color: #7cb8ff; }
.feed-ic .svg-i { width: 15px; height: 15px; }
.feed-text { font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.feed-text b { color: var(--text); font-weight: 600; }
.feed-time { font-size: 11.5px; color: var(--dim); margin-top: 1px; }

/* ---------- Aufgaben: Checkliste, Kommentare ---------- */
.t-progress { height: 4px; border-radius: 4px; background: rgba(140, 180, 255, 0.08); overflow: hidden; margin: -2px 0 10px; }
.t-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--mint)); border-radius: 4px; }
.cl-bar { margin-bottom: 4px; }
.cl-bar i { background: linear-gradient(90deg, var(--blue), var(--mint)); transition: width 0.2s; }
.cl-list { display: flex; flex-direction: column; gap: 2px; }
.cl-item { display: flex; align-items: center; gap: 8px; padding: 2px 4px 2px 6px; border-radius: 10px; }
.cl-item:hover { background: rgba(140, 180, 255, 0.05); }
.cl-item input[type=checkbox] { accent-color: var(--mint); width: 16px; height: 16px; flex: none; }
.cl-text { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 6px 2px; font-size: 13.5px; }
.cl-item.done .cl-text { color: var(--dim); text-decoration: line-through; }
.cl-item .icon-btn { width: 26px; height: 26px; opacity: 0; }
.cl-item:hover .icon-btn, .cl-item:focus-within .icon-btn { opacity: 1; }
.cl-add, .cm-add { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; }
.cm-add { flex-direction: column; align-items: stretch; }
.cm-add .btn { align-self: flex-end; }
.comments { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow: auto; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment-meta { font-size: 12px; color: var(--dim); display: flex; gap: 6px; align-items: center; }
.comment-meta b { color: var(--text); font-weight: 600; }
.comment-body { font-size: 13px; line-height: 1.55; margin-top: 2px; padding: 8px 11px; border-radius: 4px 12px 12px 12px; background: rgba(6, 11, 20, 0.5); border: 1px solid var(--line); }
.comment-body p:last-child { margin-bottom: 0; }
.link-btn { border: 0; background: none; padding: 0; color: var(--dim); font-size: 11.5px; cursor: pointer; margin-left: auto; }
.link-btn:hover { color: var(--coral); }

/* ---------- Feinschliff ---------- */
.card { transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
a.card:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px -22px rgba(43, 140, 255, 0.8); }
a.tile:hover { transform: translateY(-2px); }
.tile .ic { transition: transform 0.2s; }
a.tile:hover .ic { transform: scale(1.07) rotate(-4deg); }
:focus-visible { outline: 2px solid rgba(43, 140, 255, 0.8); outline-offset: 2px; border-radius: 8px; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible, .cl-text:focus-visible, .palette-input input:focus-visible { outline: 0; }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1200px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .dock { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 270px; padding: 10px; transform: translateX(-110%); transition: transform 0.2s; }
  .dock.open { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 40; background: rgba(3, 6, 12, 0.6); }
  .topbar .menu-btn { display: inline-grid; }
  .main { padding: 8px 16px 40px; }
  .g-2, .g-3, .g-side, .g-side-l, .g-meet, .editor { grid-template-columns: 1fr; }
  .att-pick button span { display: none; }
  .search-btn { min-width: 0; } .search-btn span, .search-btn kbd, .clock { display: none; }
  .kanban { grid-template-columns: repeat(3, 85vw); }
  .collapse-btn { display: none; }
  .week { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; }
}
@media (max-width: 560px) {
  .g-4 { grid-template-columns: 1fr 1fr; }
  .status-rail { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; }
  .page-title { font-size: 21px; }
  .hero { padding: 20px; } .hero h1 { font-size: 23px; } .hero-right { margin-left: 0; text-align: left; }
  .li { padding: 12px 14px; flex-wrap: wrap; }
}

/* Druckansicht (Besprechungsprotokoll) */
@media print {
  body { background: #fff; color: #000; }
  .dock, .topbar, .no-print, .toasts { display: none !important; }
  .shell { display: block; }
  .card { background: none; border: 1px solid #ccc; backdrop-filter: none; box-shadow: none; }
  .muted, .dim, .info-row span:first-child { color: #555; }
  .chip { border-color: #999; color: #000; background: none; }
}
