/* CCH Planungscenter – module-specific layout tuning
   Scoped intentionally to the planning center. No global center styles are changed. */

body.cch-module-planungscenter .module-center-card {
  margin: 0;
  padding: 0;
}

body.cch-module-planungscenter .module-center-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 2px 4px 8px;
  border: 0;
  background: transparent;
}

body.cch-module-planungscenter .module-center-head > div:first-child {
  min-width: 0;
}

body.cch-module-planungscenter .module-center-head .module-kicker {
  display: none !important;
}

body.cch-module-planungscenter .module-center-head h2 {
  margin: 0;
  font-size: clamp(20px, 1.55vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}

body.cch-module-planungscenter .module-center-toolbar {
  gap: 6px;
  align-items: center;
}

body.cch-module-planungscenter .module-center-toolbar button,
body.cch-module-planungscenter .module-center-toolbar .btn,
body.cch-module-planungscenter .module-center-toolbar .btn-soft {
  min-height: 36px;
  padding: 7px 11px;
}

body.cch-module-planungscenter .module-center-host {
  min-width: 0;
  margin: 0;
  padding: 0 0 16px;
}

body.cch-module-planungscenter .module-center-host > :is(
  main,
  .stack,
  .wrap,
  .layout,
  .dienstplan-shell,
  .mpm-shell,
  .monatsplan-mitnahme-shell
) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.cch-module-planungscenter .module-center-head + .module-center-host {
  margin-top: 0;
}

@media (max-width: 760px) {
  body.cch-module-planungscenter .module-center-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 2px 10px 8px;
  }

  body.cch-module-planungscenter .module-center-head h2 {
    font-size: 22px;
  }

  body.cch-module-planungscenter .module-center-host {
    padding: 0 8px 14px;
  }
}

/* 2026-09-20 · Planungscenter V3: verbindlicher 5-%-Seitenrand. */
body.cch-module-planungscenter .module-center-shell {
  width: 90vw !important;
  max-width: 90vw !important;
  margin-left: 5vw !important;
  margin-right: 5vw !important;
}

body.cch-module-planungscenter .module-center-card,
body.cch-module-planungscenter .module-center-host {
  width: 100%;
  max-width: none;
}

@media (max-width: 760px) {
  body.cch-module-planungscenter .module-center-shell {
    width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* 2026-09-20 · CCH V3 Workspace Standard
   Arbeitsmodule mit .cch-module-workspace-full dürfen nicht durch Modul-/Card-Maxbreiten
   eingeschränkt werden. Modulspezifische CSS-Dateien definieren nur noch ihre
   fachliche Tabellen-Mindestbreite und responsive Details. */
body.cch-module-planungscenter.cch-module-workspace-full .module-center-shell {
  width: 90vw !important;
  max-width: 90vw !important;
  min-width: 0 !important;
  margin-left: 5vw !important;
  margin-right: 5vw !important;
}
body.cch-module-planungscenter.cch-module-workspace-full :is(.module-center-card,.module-center-host,#moduleHost) {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

/* Der Einsatzplan bleibt als fokussierte Planungsfläche schmaler als der
   tabellenlastige Dienstplan, ohne kleine Viewports einzuschränken. */
body.cch-module-planungscenter.cch-page-cch-monatsplan-mitnahme .module-center-shell {
  width: 90vw !important;
  max-width: 90vw !important;
  margin-left: 5vw !important;
  margin-right: 5vw !important;
}

@media (max-width: 1100px) {
  body.cch-module-planungscenter.cch-page-cch-monatsplan-mitnahme .module-center-shell {
    width: calc(100% - 32px) !important;
  }
}
@media (max-width:760px) {
  body.cch-module-planungscenter.cch-module-workspace-full .module-center-shell {
    width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
