/* CCH Native V3 structural module CSS: modules/todo/css/todo.css
   Old visual skin removed. Uses core/css/cch-design-v3.css. */
body.cch-page-cch-todo .todo-hero, body.cch-page-cch-todo .todo-card, body.cch-page-cch-todo .todo-item, body.cch-page-cch-todo .todo-form-panel {
  backdrop-filter: blur(18px);
  box-sizing: border-box;
}

body.cch-page-cch-todo .todo-hero {
  padding: 22px;
  margin-bottom: 18px;
}

body.cch-page-cch-todo .todo-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.cch-page-cch-todo .todo-page-title {
  margin: 12px 0 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 950;
}

body.cch-page-cch-todo .todo-subtitle, body.cch-page-cch-todo .small-note {
  line-height: 1.55;
}

body.cch-page-cch-todo .todo-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

body.cch-page-cch-todo .todo-stat {
  padding: 14px;
}

body.cch-page-cch-todo .todo-stat b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .055em;
  margin-bottom: 6px;
}

body.cch-page-cch-todo .todo-stat strong {
  font-size: 24px;
  letter-spacing: -.04em;
}

body.cch-page-cch-todo button {
  min-height: 40px;
  padding: 9px 13px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

body.cch-page-cch-todo button:hover {
  transform: translateY(-1px);
}

body.cch-page-cch-todo .cch-mobile-menu-head button,
body.cch-page-cch-todo .cch-notification-modal__close,
body.cch-page-cch-todo .cch-dm-modal__close {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-size: 18px !important;
  flex: 0 0 auto !important;
}

body.cch-page-cch-todo .cch-mobile-menu-head button:hover,
body.cch-page-cch-todo .cch-notification-modal__close:hover,
body.cch-page-cch-todo .cch-dm-modal__close:hover {
  transform: none;
}

body.cch-page-cch-todo .todo-actions-under-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 16px 0 0 !important;
}

body.cch-page-cch-todo .todo-actions-under-stats button {
  width: 100% !important;
}

body.cch-page-cch-todo .todo-layout.board-only {
  display: block !important;
}

body.cch-page-cch-todo .todo-card {
  padding: 18px;
  min-height: 520px;
}

body.cch-page-cch-todo .todo-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.cch-page-cch-todo .todo-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

body.cch-page-cch-todo input, body.cch-page-cch-todo select, body.cch-page-cch-todo textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  font: inherit;
  box-sizing: border-box;
}

body.cch-page-cch-todo textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

body.cch-page-cch-todo .todo-filter-grid, body.cch-page-cch-todo .form-grid {
  display: grid;
  gap: 12px;
}

body.cch-page-cch-todo .grid2, body.cch-page-cch-todo .todo-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.cch-page-cch-todo .todo-filter-row {
  grid-template-columns: minmax(0, 1fr) 160px;
}

body.cch-page-cch-todo .todo-list.pinnboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.cch-page-cch-todo .todo-item {
  position: relative;
  padding: 14px;
  min-height: 176px;
  display: grid;
  gap: 12px;
  align-content: space-between;
  overflow: hidden;
}

body.cch-page-cch-todo .todo-item.done {
  opacity: .68;
}

body.cch-page-cch-todo .todo-item.done .todo-title {
  text-decoration: line-through;
}

body.cch-page-cch-todo .todo-item.pinned:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
}

body.cch-page-cch-todo .todo-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body.cch-page-cch-todo .todo-title {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0;
  overflow-wrap: anywhere;
}

body.cch-page-cch-todo .todo-description {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 6px;
}

body.cch-page-cch-todo .todo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.cch-page-cch-todo .todo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 850;
}

body.cch-page-cch-todo .todo-card-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
}

body.cch-page-cch-todo .todo-card-actions button {
  width: 100% !important;
  min-height: 36px !important;
  justify-content: center !important;
  text-align: center !important;
}

body.cch-page-cch-todo .todo-pin {
  min-width: 34px;
  width: 34px;
  height: 34px;
  min-height: 34px !important;
  padding: 0 !important;
}

body.cch-page-cch-todo .todo-empty {
  padding: 28px;
  text-align: center;
  font-weight: 800;
  grid-column: 1/-1;
}

body.cch-page-cch-todo .todo-form-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  backdrop-filter: blur(12px);
}

body.cch-page-cch-todo .todo-form-modal.show, body.cch-page-cch-todo .todo-form-modal[aria-hidden="false"] {
  display: flex;
}

body.cch-page-cch-todo.cch-todo-modal-open {
  overflow: hidden;
}

body.cch-page-cch-todo .todo-form-panel {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 20px;
}

body.cch-page-cch-todo .todo-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

body.cch-page-cch-todo #closeTodoModalBtn {
  width: auto !important;
  flex: 0 0 auto !important;
}

@media (max-width:1320px) {
body.cch-page-cch-todo .todo-list.pinnboard {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
}

@media (max-width:1080px) {
body.cch-page-cch-todo .todo-list.pinnboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.cch-page-cch-todo .todo-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width:760px) {
body.cch-page-cch-todo .todo-hero, body.cch-page-cch-todo .todo-card, body.cch-page-cch-todo .todo-item {
  padding: 14px;
}

body.cch-page-cch-todo .todo-stats, body.cch-page-cch-todo .todo-list.pinnboard, body.cch-page-cch-todo .grid2, body.cch-page-cch-todo .todo-filter-row {
  grid-template-columns: 1fr;
}

body.cch-page-cch-todo .todo-actions-under-stats {
  grid-template-columns: 1fr !important;
}

body.cch-page-cch-todo input, body.cch-page-cch-todo select, body.cch-page-cch-todo textarea {
  font-size: 16px;
  min-height: 46px;
}

body.cch-page-cch-todo .todo-form-modal {
  align-items: flex-end;
  padding: 0;
}

body.cch-page-cch-todo .todo-form-panel {
  width: 100%;
  max-height: 92dvh;
  padding: 16px;
}
}

@media print {
body.cch-page-cch-todo .screen-only, body.cch-page-cch-todo .cch-sticky-topnav, body.cch-page-cch-todo .todo-form-modal {
  display: none !important;
}

body.cch-page-cch-todo .wrap {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}
}

/* To-Do V3.2 – Arbeitsboard, Filterdrawer und Titelstandard */
body.cch-page-cch-todo .wrap {
  width: min(1680px, calc(100% - 32px));
  max-width: none;
  margin-inline: auto;
}

body.cch-page-cch-todo .todo-titlebar {
  position: relative;
  padding: 18px 0 20px 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(67, 194, 236, .26);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.cch-page-cch-todo .todo-titlebar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #43d7ff, #0eace8);
  box-shadow: 0 0 18px rgba(43, 197, 255, .2);
}

body.cch-page-cch-todo .todo-page-title {
  margin: 0;
  font-size: clamp(30px, 2.6vw, 42px);
  letter-spacing: -.045em;
}

body.cch-page-cch-todo .todo-stats {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

body.cch-page-cch-todo .todo-stat,
body.cch-page-cch-todo .todo-card {
  border: 1px solid rgba(88, 203, 255, .16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 36, 53, .9), rgba(7, 23, 35, .94));
  box-shadow: none;
}

body.cch-page-cch-todo .todo-actions-under-stats {
  display: flex !important;
  width: auto !important;
  justify-content: flex-start;
  flex-wrap: wrap;
}

body.cch-page-cch-todo .todo-actions-under-stats button {
  width: auto !important;
}

body.cch-page-cch-todo .todo-list-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(88, 203, 255, .14);
  border-radius: 14px;
  background: rgba(7, 23, 35, .72);
}

body.cch-page-cch-todo .todo-search-box {
  display: grid;
  gap: 7px;
  color: #a8bdcb;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.cch-page-cch-todo .todo-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
}

body.cch-page-cch-todo #todoActiveFilterCount {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(43,197,255,.13);
  color: #8adfff;
  font-size: 11px;
}

body.cch-page-cch-todo .todo-filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin: 0 0 14px;
  border: 1px solid rgba(43, 197, 255, .24);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 38, 54, .98), rgba(7, 24, 36, .98));
}

body.cch-page-cch-todo .todo-filter-panel[hidden] { display: none !important; }
body.cch-page-cch-todo .todo-filter-panel label { display:block; margin-bottom:7px; font-size:11px; font-weight:850; color:#a8bdcb; }

body.cch-page-cch-todo .todo-list.pinnboard {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

body.cch-page-cch-todo .todo-item {
  border: 1px solid rgba(88, 203, 255, .14);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(14, 35, 51, .94), rgba(7, 22, 34, .96));
  box-shadow: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

body.cch-page-cch-todo .todo-item:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 197, 255, .38);
  background: linear-gradient(180deg, rgba(17, 44, 62, .98), rgba(8, 27, 40, .98));
}

body.cch-page-cch-todo .todo-chip.prio-critical {
  color: #ffd4dc;
  border-color: rgba(255, 84, 113, .35);
  background: rgba(255, 84, 113, .13);
}

body.cch-page-cch-todo .todo-form-modal { z-index: 300000; }
body.cch-page-cch-todo .todo-form-panel {
  width: min(860px, calc(100vw - 32px));
  max-height: min(90dvh, 860px);
  border: 1px solid rgba(88, 203, 255, .25);
  border-radius: 20px;
  background: linear-gradient(180deg, #102638, #081a28);
  box-shadow: 0 30px 110px rgba(0,0,0,.5);
}

body.cch-page-cch-todo .todo-form-head {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(88, 203, 255, .16);
}

body.cch-page-cch-todo .todo-calendar-hint {
  display:block;
  margin-top:7px;
  color:#91a9ba;
  line-height:1.45;
}

@media (max-width: 900px) {
  body.cch-page-cch-todo .todo-filter-panel { grid-template-columns: 1fr 1fr; }
  body.cch-page-cch-todo .todo-filter-reset { width:100%; }
}

@media (max-width: 760px) {
  body.cch-page-cch-todo .wrap { width: calc(100% - 20px); }
  body.cch-page-cch-todo .todo-titlebar { padding-left:16px; }
  body.cch-page-cch-todo .todo-list-toolbar,
  body.cch-page-cch-todo .todo-filter-panel { grid-template-columns: 1fr; }
  body.cch-page-cch-todo .todo-actions-under-stats { display:grid !important; width:100% !important; }
  body.cch-page-cch-todo .todo-actions-under-stats button { width:100% !important; }
}
